Windows 8.1
Selenium Version:
Selenium version 3.14.0
Browser:
Firefox
-->
Browser Version:
63.0
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.
But we getting Error message as "could not be scrolled into view" and Exception as "org.openqa.selenium.ElementNotInteractableException".
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='price product-price']")).getText().trim().toString();
driver.findElement(By.xpath("//a[@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-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/1c4f58a7-3fa2-4c39-bfc5-0dd6cdb9882b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJZsUsZtnC%2B0p4WweRCfbdKYVqDtZaO6DXnkd%2BCJ3SgQw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CALznS1OTZfMRFAU9JVyy0WrZ2kB9hqX5Jk09bpjZRx7STMt-ow%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAHd%3D%3DmJR5K_ZX%3D2wB30T%3D_k1Wha7B26r6jvyx%2Bn1Sx0hiVDxzg%40mail.gmail.com.
Use JavaScript executor to scroll down
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.