-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Safari 10 integrated webdriver will fail on browser.executeAsyncScript #3588
Comments
Thanks - this is probably SafariDriver interpreting something incorrectly but we should figure out what it is and report that issue to them. |
I have same issue on Safari 10, macOS Sierra using webdriver and I do not use protractor... Seems this should be moved to safariDriver list of bugs.
|
Safari 10 uses the safaridriver, which is only supported in Selenium 3. This will be fixed when we upgrade to the latest Selenium. |
We have mapped the protractor to run on Selenium 3.0.1. now we are getting different exception while identifying any element in an application. Please find the log below. Please help us to resolve this. |
Is this still an issue? I got this issue when I upgraded safari. So I bumped the version of protractor to the latest: ^5.0.0 Now when I run protractor against safari i get the error:
I read that safari has the web driver built in now. Thats why I find this message confusing! |
@shavo007 You'll get that if you're using Selenium <3.x
|
@pittgoose @mgiambalvo Error: Error while running testForAngular: undefined is not an object (evaluating 'd.prototype[b].apply') (WARNING: The server did not provide any stacktrace information) running tests in Safari. |
I still haven't gotten this to work myself, but I do know that
`org.openqa.selenium.safari.SafariDriver`
is the Selenium distribution of safaridriver and not the one provided my
apple.
|
@pittgoose Tried searching but cannot find the one from Apple. when I do a I get this. Not sure how to tell webdriver to use this. |
Hi - I could not able to invoke url on safari browser. 1 - Safari is invoked but not navigating to the url Error : n unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information) Enables Automation on browser and used extension as well. version using : /usr/local/lib |
Hello, I am also running into the same exact issue as smunukuntla. The Safari browser will open but then never navigates to my url. Failed: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information) |
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 errorundefined 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
4.2.1
4.0.8
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)
The text was updated successfully, but these errors were encountered: