Safari 10 integrated webdriver will fail on browser.executeAsyncScript #3588
Description
Hi there!
I tried to run a test suite with the integrated webdriver from Safari 10. It seems to fail on browser.executeAsyncScript
with this error undefined is not an object (evaluating 'd.prototype[b].apply')
. Same test is ok on chrome.
It may be more webdriver related than protractor, but I didn't really know where to report this issue. Hope this helps!
Edit
I justed rollbacked to Safari 9.1.3, the same test works fine.
Bug report
- Node Version:
4.2.1
- Protractor Version:
4.0.8
- Browser(s):
Safari 10
a larger extract of the webdriver output:
15:18:25.719 INFO - Executing: [execute async script: return (function (done){ done({isOk: !!window.nonExisting}); }).apply(null, arguments);, []]) 15:18:26.526 WARN - Exception thrown org.openqa.selenium.WebDriverException: undefined is not an object (evaluating 'd.prototype[b].apply') (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 38 milliseconds Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03' System info: host: 'helium.strasbourg.4js.com', ip: '10.0.70.25', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_102' Driver info: org.openqa.selenium.safari.SafariDriver Capabilities [{browserName=safari, takesScreenshot=true, javascriptEnabled=true, version=10.0, cssSelectorsEnabled=true, platform=MAC, secureSsl=true}] Session ID: null 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.executeAsyncScript(RemoteWebDriver.java:598) 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:498) at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:103) at com.sun.proxy.$Proxy1.executeAsyncScript(Unknown Source) at org.openqa.selenium.support.events.EventFiringWebDriver.executeAsyncScript(EventFiringWebDriver.java:229) at org.openqa.selenium.remote.server.handler.ExecuteAsyncScript.call(ExecuteAsyncScript.java:58) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 15:18:26.527 WARN - Exception: undefined is not an object (evaluating 'd.prototype[b].apply') (WARNING: The server did not provide any stacktrace information)