Can't launch Protractor with Safari

I have been trying to solve this for several days, please help me!

I run my protractor tests using chrome, firefox and internet explorer, but when I try to run the same test in Safari, I get the following error:

    ScriptTimeoutError: Timed out awaiting response to command "executeScript" after 30003 ms (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 30.08 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'myPC', ip: '192.168.0.12', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45'
Driver info: org.openqa.selenium.safari.SafariDriver
Capabilities [{browserName=safari, takesScreenshot=true, javascriptEnabled=true, version=5.1.7, cssSelectorsEnabled=true, platform=WINDOWS, secureSsl=true}]
Session ID: null

      

The error occurs when I try to get some url like browser.get('https://www.google.com');

. I tried to run the same test in Safari on my macbook colleague to see if the problem is my Windows environment (and older safari version 5.1.7) but the same problem was there. I also tried to change allScriptsTimeout

and got the same problem, I tried many different configurations in the protractor config file and it didn't work = (

I'm sure I'm doing something wrong, but I don't know what ... I haven't found more information on this error.

Edit: There is a known issue ( https://github.com/angular/protractor/issues/2111 ) about using the protractor with safari

+3


source to share





All Articles