I am using the SmartClientChromeDriver from the 6.0p from the build on 2016-07-05. When I call the waitForElementClickable method (see below), it sometimes dumps the exception stack (see below) to the console. However, the function continues to run until the condition is met and returns successfully. Most other methods just swallow exceptions like this if they are going to keep executing. This exception is cluttering up the output from my tests with exceptions that are not real issues and I cannot silence them because they appear to be internal to the driver code. Can we get these silenced?
Code:
driver.waitForElementClickable(ByScLocator.scLocator(locator), 30);
Code:
Exception in WebDriver.isElementClickable:org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document (Session info: chrome=51.0.2704.103) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 1.10 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' System info: host: 'PGREVER1', ip: '15.86.204.43', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_74' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={chromedriverVersion=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4), userDataDir=C:\Users\pgrever\AppData\Local\Temp\scoped_dir35008_5091}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=51.0.2704.103, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 56aaaecfd209eb82cb1caec895f59e42 org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document (Session info: chrome=51.0.2704.103) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 1.10 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' System info: host: 'PGREVER1', ip: '15.86.204.43', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_74' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={chromedriverVersion=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4), userDataDir=C:\Users\pgrever\AppData\Local\Temp\scoped_dir35008_5091}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=51.0.2704.103, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 56aaaecfd209eb82cb1caec895f59e42 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:423) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:577) at com.isomorphic.webdriver.SmartClientWebDriver.performJavascriptFunction(SmartClientWebDriver.java:385) at com.isomorphic.webdriver.SmartClientWebDriver.access$100(SmartClientWebDriver.java:65) at com.isomorphic.webdriver.SmartClientWebDriver$5.success(SmartClientWebDriver.java:331) at com.isomorphic.webdriver.SmartClientWebDriver$Waiter.waitFor(SmartClientWebDriver.java:369) at com.isomorphic.webdriver.SmartClientWebDriver.waitForJavascriptFunction(SmartClientWebDriver.java:333) at com.isomorphic.webdriver.SmartClientWebDriver.waitForElementClickable(SmartClientWebDriver.java:131) at com.hp.cp.pm.test.system.ui.selenium.Util.waitForElementClickable(Util.java:33) at com.hp.cp.pm.test.system.ui.selenium.LoadRework.executeTest(LoadRework.java:48) at com.hp.cp.pm.test.system.ui.selenium.LoadRework.run(LoadRework.java:22) at com.hp.cp.pm.test.system.ui.selenium.UiPerformanceTestRunner.run(UiPerformanceTestRunner.java:174) at com.hp.cp.pm.test.system.ui.selenium.UiPerformanceTestRunner.run(UiPerformanceTestRunner.java:78) at com.hp.cp.pm.test.system.ui.selenium.PerformanceTests.executeSpringContext(PerformanceTests.java:85) at com.hp.cp.pm.test.system.ui.selenium.PerformanceTests.main(PerformanceTests.java:19)
Comment