-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selenium::Status return wrong ready status when use with Firefox. #47
Comments
This brings another side effect. # Use code above
session1 = driver.create_session(capabilities)
session1.navigate_to("https://bing.com")
session2 = driver.create_session(capabilities)
session1.navigate_to("https://bing.com") Create two session use same chromedriver work as expected, no error. But, it raise exception when use with gecodriver.
|
Updated: I found firefox driver probably return correct status occasionally, but with a empty message. driver.status # => #<Selenium::Status:0x7f34c55b3b80 @message="", @ready=true> So, define a method like this seem like enough:
|
Hi, i create a PR #48 for serialize/unserialize Selenium::Session, which utilize the behavior of firefox driver which described on this issue. Anyone, i consider one of them is incorrect, just leave this issue open for now. |
Following is reproduce:
firefox.cr
When can saw the geckodriver process start twice on different port. (this is not expected)
but, when use with chromedriver, it work different.
chrome.cr
chromedriver process only started once, it reuse exists port, this is expected, right?
The above different is:
╰─ $ ./firefox
driver.status # => #<Selenium::Status:0x7f0304cb2ae0
@message="Session already started",
@ready=false>
╰─ $ ./chrome
driver.status # => #<Selenium::Status:0x7fe03231bae0
@message="ChromeDriver ready for new sessions.",
@ready=true>
Which one is correct?
Thanks
The text was updated successfully, but these errors were encountered: