JavascriptExecutor je = (JavascriptExecutor) driver;
WebElement element = driver.findElement(By.tagName("...."));
je.executeScript("arguments[0].scrollIntoView(true);",element);
But the thing is element is visible only when we scroll down the dropdown.
In above code i am trying to find out the element which is not visible and not present at DOM.
Then i am getting the exception in second line itself.
Your suggestion is very valuable for me.
Waiting for your replies.
Regards,
Rajasekhar.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.