[jira] [Created] (PLUTO-730) Selenium WebDriverException thrown by TCKSimpleTestDriver

"Neil Griffin (JIRA)" <[email protected]> Wed, 22 Aug 2018 20:37:00 +0000 (UTC)
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
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)