Neil Griffin created PLUTO-730:
----------------------------------

             Summary: 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.1, 3.0.0
            Reporter: Neil Griffin
            Assignee: Neil Griffin
             Fix For: 3.0.2


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) driver;
javascriptExecutor.executeScript("window.scrollTo(0, 
(arguments[0].getBoundingClientRect().top + window.pageYOffset) - 
(window.innerHeight / 2));", wel);
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to