Meanwhile, Barber had searched 'What is the name of someone you are having an affair with?' and the word 'alibi' on Google.
She also searched 'a lie of where you have been' then 'good secluded areas,' and 'Holiday Inn, Wycombe.'
But the teacher claimed in evidence she was just trying to find out the name of the film Fatal Attraction and only enquired about 'secluded areas' for her dog walks.
She said: "I was up at 5am as my mum and I were going to set up a car boot sale.
"On the way there was a name of a film that was bugging me, so I Googled those words. We were trying to remember the film name.
"I thought the name had something to do with adultery but it turned out to be the film Fatal Attraction."
She added that she had Googled the hotel for her son’s father to stay in while he visited and "good secluded areas" was in relation to wanting to take her dog for a walk off the lead as he "absolutely loves lakes."
Judge Francis Sheridan said to Barber although the boy had called her three times, the majority of phone calls had been started by her.
She then replied: "A lot of the time I am calling because he has contacted me on Snapchat saying ‘call me, call me.’
She also searched "a lie of where you have been" before later looking up "good secluded areas," and "Holiday Inn, Wycombe."
Meanwhile, Barber had searched "what is the name of someone you are having an affair with?" and the word "alibi" on Google, it was said.
"Now I think he was clearly infatuated and obsessed with me. For me it was all perfectly innocent conversation."
The court heard Barber had begged the boy to delete the messages between them following rumours that had floated around in school and at a meeting with the headteacher.
She said: "At one point I asked the boy to delete messages between us because I was concerned about losing my job.
"My eldest son had got wind of the rumours, he is the type of person who would ask to see my phone.”
Prosecutor Richard Milne questioned: "He has gone to all this trouble to create a fictitious relationship between the two of you. He has messaged himself to create this fantasy relationship with you?”
She was arrested after the boy revealed the alleged relationship to the headteacher in March 2019 after naked pictures of Barber circulated around Princes Risborough School in Buckinghamshire, the court heard.
In her evidence, Barber said she had given the teenager her number so he could talk to her about any issues and denied the conversations were sexual.
She told the court she never sent him topless pictures of herself and claimed the My Eyes Only folder in her Snapchat had been hacked.
She said she became uncomfortable with the boy's phone calls and when she refused to have any contact with him she claimed he sent a message reading: 'Watch what's going to happen, you're going to lose your job, you're going to lose your family.'
Barber was arrested in March last year, four months after the headmaster saw an X-rated picture of her sweeping through the school.
The boy denied having sex with her at first, then claimed he was worried about his baby being born in prison as Barber had allegedly told him she was pregnant.
The court was told one of the pictures was seen by the headmaster in November 2018 and Barber was arrested in March last year - after the boy denied having sex with her.
But during his police interview, he told officers: "I lied because she had told me she could be pregnant with my child and I began to panic. I lied to pretty much everyone except my friends.
“She said that if I was going to snitch, snake on her basically, she was going to bring me down with her.
"I was like, are you going to accuse me of rape? She was like, dot dot dot. Obviously I got angry and I did not talk to her after that.”
In November 2018 Barber was off school for two weeks after suffering an ectopic pregnancy.
+3
Giving evidence in court, her husband, Daniel Barber, said they had been trying for a baby around the time of the alleged offences
She denied ever telling the complainant the baby could be his, but said the fact that she had lost a baby was well known around the school.
Giving evidence in court, her husband, Daniel Barber, said they had been trying for a baby around the time of the alleged offences.
PREGNANCY CLAIMS
The court was told other pupils had seen pictures, a video and messages which appeared to prove that Barber had been having an affair with the student.
The teacher denied having sex with the boy and instead claimed her baby, which she later lost after suffering an ectopic pregnancy, was her husband Daniel Barber’s.
Barber denied three counts of causing or inciting a child aged under 16 to engage in a sexual act and one count of sexual communication with a child.
She has also pleaded not guilty to one count of causing or inciting a child to engage in sexual activities while in a position of trust, and one count of causing a child to watch a sexual act by a person in a position of trust.
The trial continues.
The teacher denied having sex with the boy and claimed her baby, which she later lost, was her husband Daniel Barber's.
But in a meeting with a social worker, the teacher admitted she sent the topless photo to him.
Richard Milne, prosecuting, said: "She said that she was going through a bad patch with her husband, that she was pregnant but lost the child, they wanted another but it was not happening.
“Things were strained between her and her husband. The boy had paid her attention and she had let her guard down and started to talk to him.”
Mr Barber told the court how they had started trying for a baby after the summer holidays in 2018 and denied they were going through a rough patch.
7
Daniel Barber told how they had been trying for a babyCredit: Andrew Styczynski - The Sun
7
Barber denied the chargesCredit: Hyde News & Pictures Ltd
9
Barber denied the chargesCredit: Hyde News & Pictures Ltd
David Barber leaves court hand-in-hand with wife Kandice Barber, 35, on Tuesday. Picture: Steve Parsons/PA WireSource:AAP