Shibi kp
2018-11-15 12:09:50 UTC
OS Version:
Windows 8.1
*Selenium Version:*
Selenium version 3.14.0
*Browser:*
Firefox
-->
*Browser Version:*
63.0
*Expected Behavior -*
In web page webelement is present at end of the web page or middle of web
page.
It should automatically scroll down and perform action in webelement.
*Actual Behavior -*
But we getting Error message as "could not be scrolled into view" and
Exception as "org.openqa.selenium.ElementNotInteractableException".
Steps to reproduce -
1. Launch firefox using selenium 3.14.0 (download the latest version of
firefox)
2. Go to URL ("http://automationpractice.com/index.php")
3. Click the T- Shirt scroll down product will display.
4. Need to Click the webelement.
Firefox ErrorMessage.txt
<https://github.com/SeleniumHQ/selenium/files/2579619/Firefox.ErrorMessage.txt>
Please find the java code:-
driver.get("http://automationpractice.com/index.php");
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
System.out.println("Page title is: " + driver.getTitle());
Assert.assertEquals("My Store", driver.getTitle());
waitForPageLoad();
driver.findElement(By.xpath("(//a[text()='T-shirts'])[2]")).click();
String ProductName=driver.findElement(By.xpath("//a[@class='product_img_link']")).getAttribute("title");
String ProductPrice=driver.findElement(By.xpath("//span[@Class
<https://github.com/Class>='price
product-price']")).getText().trim().toString();
driver.findElement(By.xpath("//a[@Class <https://github.com/Class>
='product_img_link']")).click();
Thanks & Regards,
Shibi KP
Windows 8.1
*Selenium Version:*
Selenium version 3.14.0
*Browser:*
Firefox
-->
*Browser Version:*
63.0
*Expected Behavior -*
In web page webelement is present at end of the web page or middle of web
page.
It should automatically scroll down and perform action in webelement.
*Actual Behavior -*
But we getting Error message as "could not be scrolled into view" and
Exception as "org.openqa.selenium.ElementNotInteractableException".
Steps to reproduce -
1. Launch firefox using selenium 3.14.0 (download the latest version of
firefox)
2. Go to URL ("http://automationpractice.com/index.php")
3. Click the T- Shirt scroll down product will display.
4. Need to Click the webelement.
Firefox ErrorMessage.txt
<https://github.com/SeleniumHQ/selenium/files/2579619/Firefox.ErrorMessage.txt>
Please find the java code:-
driver.get("http://automationpractice.com/index.php");
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
System.out.println("Page title is: " + driver.getTitle());
Assert.assertEquals("My Store", driver.getTitle());
waitForPageLoad();
driver.findElement(By.xpath("(//a[text()='T-shirts'])[2]")).click();
String ProductName=driver.findElement(By.xpath("//a[@class='product_img_link']")).getAttribute("title");
String ProductPrice=driver.findElement(By.xpath("//span[@Class
<https://github.com/Class>='price
product-price']")).getText().trim().toString();
driver.findElement(By.xpath("//a[@Class <https://github.com/Class>
='product_img_link']")).click();
Thanks & Regards,
Shibi KP
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1c4f58a7-3fa2-4c39-bfc5-0dd6cdb9882b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1c4f58a7-3fa2-4c39-bfc5-0dd6cdb9882b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.