[
https://issues.apache.org/jira/browse/PLUTO-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neil Griffin closed PLUTO-730.
------------------------------
Resolution: Fixed
> Selenium WebDriverException thrown by TCKSimpleTestDriver
> ---------------------------------------------------------
>
> Key: PLUTO-730
> URL: https://issues.apache.org/jira/browse/PLUTO-730
> Project: Pluto
> Issue Type: Bug
> Components: tck
> Affects Versions: 3.0.0, 3.0.1
> Reporter: Neil Griffin
> Assignee: Neil Griffin
> Priority: Major
> Fix For: 3.0.2-TCK
>
>
> Under certain circumstances such as a very fast CPU or a large display size,
> Selenium throws a WebDriverException similar to the following:
> {noformat}
> Exception: org.openqa.selenium.WebDriverException: unknown error: Element
> <input
> type="submit"
> value="V3HeaderPortletTests_SPEC15_Header_parameters6" name="inputval"
> id="V3HeaderPortletTests_SPEC15_Header_parameters6-clickme">
> is not clickable at point (866, 930). Other element would receive
> the click: <html>...</html>
> {noformat}
> The workaround is to put the following Java code just before web driver
> button clicks:
> {code:java}
> JavascriptExecutor javascriptExecutor = (JavascriptExecutor) webDriver;
> javascriptExecutor.executeScript("window.scrollTo(0,
> (arguments[0].getBoundingClientRect().top + window.pageYOffset) -
> (window.innerHeight / 2));", webElement);
> {code}
> To enable the workaround, specify {{-Dtest.scroll=true}} on the command line.
> For example:
> {code}
> mvn test -Prun-tck -Dtest.scroll=true
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)