Post

Replies

Boosts

Views

Activity

[safaridriver] Safari crashes when visiting URL under test
Navigating to the URL https://www.libertymutual.com through safaridriver causes Safari to crash with an EXC_BAD_ACCESS exception type. This does not happen when navigating to the page on Safari alone and does not happen with other browsers (i.e. chromedriver or geckodriver). This is happening on my machine running macOS Ventura, but is also an issue on machines running Monterey. The steps to reproduce are simple: Start safaridriver (i.e. usr/bin/safardriver -p <port>) Launch a new Safari session through safaridriver with all default capabilities Send a request to safardriver to navigate to https://www.libertymutual.com This results in Safari crashing every time, although a crash dialog is not shown each time (I don’t know why that would be the case). The WebDriver diagnostic logs seem to indicate a 500 error returned from the server, while the crash report indicates an invalid memory access. Both are attached. Any thoughts on what could cause this issue? problem_report_safari.log safaridriver.11760.hyuzpc.txt
4
0
1.4k
Nov ’22
[safaridriver] Unable to specificy capabalities on session create
When starting a session using safaridriver, attempting to specify particular capabilities appears to not have an effect. The returned response from the webdriver server does not indicate that the specified capabilities were applied - it is the same every time. This behavior persists for all capabilities I've tried. The way I am providing capabilities seems consistent with the webdriver specification. Does safaridriver expect capabilities to be provided in another way, or is this a bug? A couple examples: Automatic profiling not applied $ /usr/bin/safaridriver -p 8833 $ curl -X POST --data '{"capabilities":{"browserName":"Safari","safari:automaticProfiling":true}}' http://localhost:8833/session {"value":{"sessionId":"96871DF1-C25D-4584-AE2C-1FF15C9CEFCB","capabilities":{"safari:platformVersion":"13.0","safari:automaticInspection":false,"webkit:WebRTC":{"DisableICECandidateFiltering":false,"DisableInsecureMediaCapture":false},"browserVersion":"16.1","strictFileInteractability":false,"browserName":"Safari","safari:useSimulator":false,"safari:automaticProfiling":false,"safari:platformBuildVersion":"22A380","acceptInsecureCerts":false,"setWindowRect":true,"platformName":"macOS","safari:diagnose":false}}}% Page load strategy not applied $ /usr/bin/safaridriver -p 8833 $ curl -X POST --data '{"capabilities":{"browserName":"Safari","pageLoadStrategy":"eager"}}' http://localhost:8833/session {"value":{"sessionId":"56F6A934-3A93-4855-A5F1-E81A908AC6A4","capabilities":{"safari:platformVersion":"13.0","safari:automaticInspection":false,"webkit:WebRTC":{"DisableICECandidateFiltering":false,"DisableInsecureMediaCapture":false},"browserVersion":"16.1","strictFileInteractability":false,"browserName":"Safari","safari:useSimulator":false,"safari:automaticProfiling":false,"safari:platformBuildVersion":"22A380","acceptInsecureCerts":false,"setWindowRect":true,"platformName":"macOS","safari:diagnose":false}}}%
0
0
430
Nov ’22