You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to see Safari support! I took a stab at implementing "Selenium::Safari" by modifying "Selenium::Chrome" and looking at the python code in selenium/webdriver/safari/webdriver.py (which works for me) and got a few steps in, but not enough to have anything functional.
Here's what I found:
Replacing "chrome" with "safari" globally was a great first step
Safari's webdriver has no "/wd/hub" prefix, adding this to Selenium/Safari.pm helped:
has wd_context_prefix => (
is => 'ro',
default => ''
);
The binary is called 'safaridriver,' its default port is 4444, and that's the only arg one can pass to safaridriver.
The Python library creates a connection before it runs "check_status," and I think Safari's driver doesn't return anything until it has a connection POSTed. This is where I got lost.
Falling back to using Chrome for my testing at the moment, it's close enough. If I can help with testing a Safari module let me know and I will.
The text was updated successfully, but these errors were encountered:
I'd like to see Safari support! I took a stab at implementing "Selenium::Safari" by modifying "Selenium::Chrome" and looking at the python code in selenium/webdriver/safari/webdriver.py (which works for me) and got a few steps in, but not enough to have anything functional.
Here's what I found:
Replacing "chrome" with "safari" globally was a great first step
Safari's webdriver has no "/wd/hub" prefix, adding this to Selenium/Safari.pm helped:
The binary is called 'safaridriver,' its default port is 4444, and that's the only arg one can pass to safaridriver.
The Python library creates a connection before it runs "check_status," and I think Safari's driver doesn't return anything until it has a connection POSTed. This is where I got lost.
Falling back to using Chrome for my testing at the moment, it's close enough. If I can help with testing a Safari module let me know and I will.
The text was updated successfully, but these errors were encountered: