Closed GoogleCodeExporter closed 9 years ago
org.openqa.selenium.WebDriverException: unknown error: Element is not clickable
at point (783, 568). Other element would receive the click: <h6
class="highlight">...</h6>
(Session info: chrome=38.0.2125.111)
(Driver info: chromedriver=2.12.301325 (962dea43ddd90e7e4224a03fa3c36a421281abb7),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 75 milliseconds
Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37'
System info: host: 'QA-Win7ProEng', ip: '10.23.28.106', os.name: 'Windows 7',
os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_20'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false,
mobileEmulationEnabled=false,
chrome={userDataDir=C:/QA/SeleniumNode/SeleniumChromeProfile},
takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true,
version=38.0.2125.111, platform=XP, browserConnectionEnabled=false,
nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true,
webStorageEnabled=true, browserName=chrome, takesScreenshot=true,
javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: cce844e9d9579a4bd400a7a69c60a8e2
Command duration or timeout: 373 milliseconds
Build info: version: '2.44.0', revision:
'76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
System info: host: 'dyn-40-client.intern.txtr.com', ip: '10.23.1.40', os.name:
'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false,
mobileEmulationEnabled=false,
chrome={userDataDir=C:/QA/SeleniumNode/SeleniumChromeProfile},
takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true,
version=38.0.2125.111, platform=XP, browserConnectionEnabled=false,
nativeEvents=true, acceptSslCerts=true,
webdriver.remote.sessionid=e2aaa6f9-fd90-4f67-b35a-977d7ff496bb,
locationContextEnabled=true, webStorageEnabled=true, browserName=chrome,
takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: e2aaa6f9-fd90-4f67-b35a-977d7ff496bb
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)
at com.txtr.automater.driverLayer.SeleniumWebDriver$5.run(SeleniumWebDriver.java:471)
at com.txtr.automater.driverLayer.SeleniumWebDriver.doAction(SeleniumWebDriver.java:338)
at com.txtr.automater.driverLayer.SeleniumWebDriver.clickOnUinqueElement(SeleniumWebDriver.java:465)
at com.txtr.automater.driverLayer.ContextBrowserDriver.clickOnUinqueElement(ContextBrowserDriver.java:189)
at com.txtr.automater.uiElements.web.link.WebLink.clickOnUinqueElement(WebLink.java:37)
at com.txtr.automater.tests.screens.web.shops.pages.searchResultContentSection.Book.clickOnTitle(Book.java:111)
at com.txtr.automater.tests.screens.web.shops.pages.searchResultContentSection.SearchResultContentSection.clickOnABookByTextOfTheTitle(SearchResultContentSection.java:59)
at com.txtr.automater.tests.steps.web.shops.searchResultPage.ContentOfTheResultPageStepsdef.i_click_on_the_title_of_book(ContentOfTheResultPageStepsdef.java:48)
at ✽.And I click on the title of "FREE: Love Your Work, Love Your Life" book(target/test-classes/com/txtr/automater/stories/web/shops/bookDetailsPage/BookDetailsPage.feature:13)
Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been
taken
Build info: version: '2.44.0', revision:
'76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
System info: host: 'dyn-40-client.intern.txtr.com', ip: '10.23.1.40', os.name:
'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0'
Driver info: driver.version: ContextBrowserDriver
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:136)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)
at com.txtr.automater.driverLayer.SeleniumWebDriver$5.run(SeleniumWebDriver.java:471)
at com.txtr.automater.driverLayer.SeleniumWebDriver.doAction(SeleniumWebDriver.java:338)
at com.txtr.automater.driverLayer.SeleniumWebDriver.clickOnUinqueElement(SeleniumWebDriver.java:465)
at com.txtr.automater.driverLayer.ContextBrowserDriver.clickOnUinqueElement(ContextBrowserDriver.java:189)
at com.txtr.automater.uiElements.web.link.WebLink.clickOnUinqueElement(WebLink.java:37)
at com.txtr.automater.tests.screens.web.shops.pages.searchResultContentSection.Book.clickOnTitle(Book.java:111)
at com.txtr.automater.tests.screens.web.shops.pages.searchResultContentSection.SearchResultContentSection.clickOnABookByTextOfTheTitle(SearchResultContentSection.java:59)
at com.txtr.automater.tests.steps.web.shops.searchResultPage.ContentOfTheResultPageStepsdef.i_click_on_the_title_of_book(ContentOfTheResultPageStepsdef.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at cucumber.runtime.Utils$1.call(Utils.java:34)
at cucumber.runtime.Timeout.timeout(Timeout.java:13)
at cucumber.runtime.Utils.invoke(Utils.java:30)
at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:35)
at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
at cucumber.runtime.Runtime.runStep(Runtime.java:298)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:48)
at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:89)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:40)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at cucumber.api.junit.Cucumber.run(Cucumber.java:94)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.openqa.selenium.WebDriverException: unknown error: Element is
not clickable at point (783, 568). Other element would receive the click: <h6
class="highlight">...</h6>
(Session info: chrome=38.0.2125.111)
(Driver info: chromedriver=2.12.301325 (962dea43ddd90e7e4224a03fa3c36a421281abb7),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 75 milliseconds
Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37'
System info: host: 'QA-Win7ProEng', ip: '10.23.28.106', os.name: 'Windows 7',
os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_20'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false,
mobileEmulationEnabled=false,
chrome={userDataDir=C:/QA/SeleniumNode/SeleniumChromeProfile},
takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true,
version=38.0.2125.111, platform=XP, browserConnectionEnabled=false,
nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true,
webStorageEnabled=true, browserName=chrome, takesScreenshot=true,
javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: cce844e9d9579a4bd400a7a69c60a8e2
Build info: version: '2.44.0', revision:
'76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
System info: host: 'dyn-40-client.intern.txtr.com', ip: '10.23.1.40', os.name:
'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.8.0'
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement$1.invoke(EventFiringWebDriver.java:331)
at com.sun.proxy.$Proxy2.click(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:344)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.openqa.selenium.remote.server.KnownElements$1.invoke(KnownElements.java:63)
at com.sun.proxy.$Proxy3.click(Unknown Source)
at org.openqa.selenium.remote.server.handler.ClickElement.call(ClickElement.java:29)
at org.openqa.selenium.remote.server.handler.ClickElement.call(ClickElement.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:168)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Original comment by gang...@gmail.com
on 4 Nov 2014 at 2:59
Original comment by andrewch...@chromium.org
on 18 Nov 2014 at 10:52
Please explain more about step two.
do you have any other client S/W that associate this issue?
Original comment by andrewch...@chromium.org
on 18 Nov 2014 at 11:04
you miss a "//" in xpath
following works
//ol[@class='tx-list-grid tx-list-shadow small-block-grid-2
large-block-grid-4']/li[1]/div/div[2]/div[1]/h6[1]/a
Can we close the case if you don't have further issue?
Original comment by andrewch...@chromium.org
on 3 Dec 2014 at 12:26
Hm?
This is the same xpath that I did post.
Original comment by david.ga...@txtr.com
on 4 Dec 2014 at 2:24
Now I can confirm that I still have this issue.
It's valid.
Original comment by david.ga...@txtr.com
on 4 Dec 2014 at 2:55
For step2:
public void clickOnSpecificElement(String locator, int index) throws Exception {
List<WebElement> elements = this.getMoreThenOneElement(locator);
try {
this.doAction(
new DoActionsOnWebElement(this.getWebdriver(),elements.get(index),this.getContextConfiguration().getWaitForElementToAppearOnThePageTimeoutInSeconds())
{
@Override
public void run() {
this.waitForElementToBeClickable();
this.getWebElementField().click();
}
});
}
catch(WebDriverException ex) {
throw new WebDriverException("Webdriver issue with locator: "+locator, ex);
}
}
Original comment by david.ga...@txtr.com
on 4 Dec 2014 at 2:56
This is my test program.
driver = new RemoteWebDriver(url, capabilities);
//
driver.get("http://gb.txtr.com/catalog/search/?query=free");
driver.findElement(
By.xpath("//ol[@class='tx-list-grid tx-list-shadow small-block-grid-2 large-block-grid-4']/li[1]/div/div[2]/div[1]/h6[1]/a"))
.click();
Original comment by andrewch...@chromium.org
on 4 Dec 2014 at 6:29
Ok now I know what is the problem.
Reproduction steps:
1. Open this url:
http://gb.txtr.com/catalog/search/?query=free&cat_name=Children%27s%2C+Teenage+%
26+educational&cat=xfh1w
2. Try to click on the following link:
//*[@id="search-view"]/div[2]/div[2]/div/div/ol/li[11]/div/div[2]/div[1]/h6[1]/a
If you inspect the element then you will see that the browser marks the next
book title as well. Probably this is causing the issue for ChromeDriver.
Original comment by gang...@gmail.com
on 11 Dec 2014 at 7:32
I followed #9
new page show up after clicked
http://gb.txtr.com/catalog/document/k4zorg9/dead-jealous-free-reading-sampler--s
haron-jones/
Dead Jealous FREE reading sampler
program exit normally.
Original comment by andrewch...@chromium.org
on 11 Dec 2014 at 6:36
[deleted comment]
What is your screen resolution and OS?
Are you using grid as well?
Original comment by gang...@gmail.com
on 11 Dec 2014 at 6:46
Chrome 39, window 7. screen resolution should not matter.
I am not using grid+node. But according to my past experience, they should not
make any difference.
Original comment by andrewch...@chromium.org
on 11 Dec 2014 at 6:58
The website is responsive. So the browser window size is matter.
I will check tomorow what is for us.
And I do not see this issue when running localy just when running on remote.
Original comment by gang...@gmail.com
on 11 Dec 2014 at 7:12
Interesting, not local , only remote.
can you explain what is your set-up exactly?
Original comment by andrewch...@chromium.org
on 11 Dec 2014 at 7:24
I am also getting the same Issue:-
org.openqa.selenium.WebDriverException: unknown error: Element is not clickable
at point (223, 459). Other element would receive the click: <label
for="Aug14">...</label>
(Session info: chrome=39.0.2171.95)
(Driver info: chromedriver=2.12.301325 (962dea43ddd90e7e4224a03fa3c36a421281abb7),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 35 milliseconds
Build info: version: '2.44.0', revision:
'76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
System info: host: 'UKTOTPC026', ip: '10.25.34.91', os.name: 'Windows 7',
os.arch: 'amd64', os.version: '6.1', java.version: '1.6.0_21'
Session ID: e95933b5b3389bf7c7414f36a8fe3f1f
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true,
browserName=chrome,
chrome={userDataDir=C:\Users\NIKHIL~1.SRI\AppData\Local\Temp\scoped_dir4288_1301
5}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false,
version=39.0.2171.95, takesHeapSnapshot=true, cssSelectorsEnabled=true,
databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false,
webStorageEnabled=true, nativeEvents=true, applicationCacheEnabled=false,
takesScreenshot=true}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:50)
at $Proxy11.click(Unknown Source)
at com.markit.mcs.automation.Totem.HomeTestScenarios.testDownloadSingleFile(HomeTestScenarios.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Its working fine for Firefox and IE Browser. Getting this Issue only for Chrome
Browser.
Any help would be appreciated.
Thanks,
Nikhil
Original comment by nikhil...@gmail.com
on 23 Dec 2014 at 11:02
you have same issue with the same test program in #8? I can not reproduce the
issue.
if you have different test programs, please provide those.
Original comment by andrewch...@chromium.org
on 23 Dec 2014 at 6:12
Original comment by andrewch...@chromium.org
on 20 Jan 2015 at 11:07
Original comment by samu...@chromium.org
on 21 Feb 2015 at 12:26
Original issue reported on code.google.com by
gang...@gmail.com
on 4 Nov 2014 at 2:58