((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", _webElement_ );is not working.
And, I have researched on google which says maybe we have to use jquery plugin. I don't know what to do. Please tell me a way to execute scrollIntoView() in IE11 without any plugin.
from selenium.webdriver.common.action_chains import ActionChains
element = driver.find_element_by_id("id")
actions = ActionChains(driver)
actions.move_to_element(element).perform()
or
driver.execute_script("arguments[0].scrollIntoView();", element)
--
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/bb14b393-c509-4b5a-ac2e-4242f95c427a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Internet Explorer 11 has a bug in scrollIntoView(), which causes the whole page to move horizontally in some cases:
There are various workarounds, like using jQuery, but this can be a problem when running Selenium tests, something like this:
WebElement element = driver.findElement(By.id("my-id"));Actions actions = new Actions(driver);actions.moveToElement(element);actions.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/81b4235e-4d7b-4e66-8a69-1b0c661771ef%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADJfZd8xjdpt%2B0wr3aBtb-KkmpjfGN92a7zEOu1nygeuco4-eg%40mail.gmail.com.