Need help to click and enter data in the IE browser

17 views
Skip to first unread message

Gouri Sankar

unread,
Mar 8, 2016, 4:04:40 AM3/8/16
to Selenium Users
Hi All,

Struck to enter and click on the elements using IE, the script is working fine in Chrome and FF.

Here is my code and details,

 WebDriver driver = new InternetExplorerDriver();
      
        driver.get("http://demo.guru99.com/V4/");
        driver.findElement(By.xpath("html/body/form/table/tbody/tr[3]/td[2]/input[1]")).click();

The error is as ,

Inline image 1


Thanks& Regards

Gourishankar.M

Satya Goyal

unread,
Mar 8, 2016, 4:30:26 AM3/8/16
to seleniu...@googlegroups.com
Try Below Code :-

driver.findElement(By.name("btnLogin")).click();

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADKSa2LXLr8u%3DXFOBVh2FfuH0yqB77gK0XU3b7ycGKkemgyF6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks
-$atya
Reply all
Reply to author
Forward
0 new messages