Element is not clickable

614 views
Skip to first unread message

jing li

unread,
May 13, 2012, 9:36:58 PM5/13/12
to seleniu...@googlegroups.com
org.openqa.selenium.WebDriverException: Element is not clickable at
point (681, 865). Other element would receive the click: <div
id="viewCBBlockControlblockControl" class="blockUI blockUILight"
style=""></div> (WARNING: The server did not provide any stacktrace
information)
Command duration or timeout: 70 milliseconds
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1',
java.version: '1.6.0_32'
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:175)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:128)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:459)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:245)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:78)
at com.autodesk.online.utilities.Selenium2Worker.click(Selenium2Worker.java:109)
at com.autodesk.online.utilities.Selenium2Worker.click(Selenium2Worker.java:133)
at com.autodesk.online.pages.ViewPage.openModelByClickAndOpen(ViewPage.java:148)
at com.autodesk.online.testcases.ViewTest.testViewForOpenByClickBut(ViewTest.java:234)
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:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:702)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219)
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:768)
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:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1022)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)



when debugging it works well,but when wrong ,it gives us the exception above

Mark Collin

unread,
May 14, 2012, 4:27:27 AM5/14/12
to seleniu...@googlegroups.com
That would suggest that you need to wait for the element to become clickable
in your test script.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to
selenium-user...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/selenium-users?hl=en.


jing li

unread,
May 15, 2012, 3:49:41 AM5/15/12
to seleniu...@googlegroups.com
Thanks, but Is there any function to help me know when is becoming Clickable?

2012/5/14 Mark Collin <mark....@lazeryattack.com>:

Maxim Vorobev

unread,
May 15, 2012, 4:06:38 AM5/15/12
to seleniu...@googlegroups.com

jing li

unread,
May 15, 2012, 9:03:09 AM5/15/12
to seleniu...@googlegroups.com
I user the fuction elementToBeClickable
ExpectedConditions.elementToBeClickable(b);
but the problem is still.
ExpectedConditions.elementToBeClickable(new ById(thuLocator));
click(thuLocator);
checkExistence(GALLERY_ID);
checkExistence(MODELOPENBUTTON_ID,60);
ById b=new ById(MODELOPENBUTTON_ID);
ExpectedConditions.elementToBeClickable(b);
click(MODELOPENBUTTON_ID);//the exception is here

2012/5/15 Maxim Vorobev <vmaxi...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages