Setup Menus in Admin Panel

ITeLearn.com

JavaScript error: http://atomic77.com/js/map.js, line 14: ReferenceError: google is not defined | Selenium Automation | Discussions | ITeLearn.com

Forum usage guidelines

  1. Search First.: If you don’t find a similar post, start a new topic. If you find a similar thread and still have a question, reply to that topic. Duplicate threads will be ignored/deleted without warning.
  2. Proper Subject: Ensure you choose a very appropriate topic name. Else it will be tough to get support from other members.
  3. Patience, please: Our Tech team or other members will usually try to respond within 24 hours on weekdays and max within 48 hours on weekends. Sometimes sooner.
  4. Share opinions: Please feel free to reply, add or comment on any ongoing topics. Collective learning will be of great benefit to all.

 
ITeLearn reviews from participants.

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
JavaScript error: http://atomic77.com/js/map.js, line 14: ReferenceError: google is not defined
February 24, 2017
12:28 pm
Kavita Kothule
Member
Forum Posts: 6
Member Since:
January 31, 2017
Offline

I wrote the following code:
driver.get(“http://atomic77.com/”);
driver.findElement(By.linkText(“CONTACT US”)).click();

and got following error on fireFox browser:
JavaScript error: http://atomic77.com/js/map.js, line 14: ReferenceError: google is not defined

and got following error on chrome browser:
Exception in thread “main” org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point

The above code was only successful with chrome browser if there was already an instance of chrome or Firefox browser open from previous execution that was not closed. Rest of the links on the home page do not work either.
Please can you help me and let me know what the problem might be.

March 8, 2017
8:28 pm
Techhelp
Member
Forum Posts: 1919
Member Since:
October 26, 2012
Offline

Kavita, where do you instantiate webdriver?

March 10, 2017
2:30 pm
Kavita Kothule
Member
Forum Posts: 6
Member Since:
January 31, 2017
Offline

public class WebdriverAtomic77{
static {
System.setProperty(“webdriver.chrome.driver”, “/Users/kavita/selenium/chromedriver/chromedriver”);
System.setProperty(“webdriver.gecko.driver”, “/Users/kavita/selenium/geckodriver/geckodriver”);
}

public static void main(String[] args)throws InterruptedException{
WebDriver driver = new FirefoxDriver();
driver.get(“http://atomic77.com/”);
Thread.sleep(3000);
//driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
WebElement contactLink = driver.findElement(By.linkText(“CONTACT US”));

This is how the code was. I think it is an error due to synchronization problem. The problem was solved by using Thread.sleep but not by using implicit or explicit timeout.

Forum Timezone: UTC -8

Most Users Ever Online: 70

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Techhelp: 1919

Manu: 114

Shan Nathan: 80

Palanki sai charan: 67

Userone: 59

Vishal Anand: 53

Archana Sapre: 51

Geetha Reddy: 44

useL: 38

Priyanka Perumalla: 36

Member Stats:

Guest Posters: 19

Members: 8005

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 22

Topics: 2100

Posts: 5773

Newest Members: Devasena Devasena, Deepti Agrawal, Paul Jo Paul Jo, Arvind Raja, Shirisha Chippagiri, Aldo Martinez, Basil Ibrahim, Sankalp Navghare, Samiksha Dalvi, Chandani Chaudhari

Administrators: Karthik eLearn (Admin): 49

0 Responses on Discussions"

Main Menu