Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

[Ruby]Issue for safari at intialization for >= 2.29.0 #5318

Closed
lukeis opened this issue Mar 4, 2016 · 9 comments
Closed

[Ruby]Issue for safari at intialization for >= 2.29.0 #5318

lukeis opened this issue Mar 4, 2016 · 9 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 5318



Selenium version: >= 2.29.0
OS: Mac 10.6.8, Mac 10.74
Browser:Safari 
Browser version: 5
Safari extension . 2.32.0
More details :

https://gist.github.com/girijabrahme/5133747

Fails to return, stuck in requesting connection phase

Reported by girija.brahme on 2013-03-11 18:11:59

@lukeis lukeis self-assigned this Mar 4, 2016
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2013-03-11 21:10:24

  • Labels added: Component-WebDriver, Browser-Safari, Lang-Ruby

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

This will be fixed as part of issue 5322, please follow that instead.

Reported by jari.bakken on 2013-03-12 12:20:44

  • Status changed: WontFix
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

This was not resolved by issue 5322.
Even with the new release which includes the extension (yay! quite useful!) The systems
I have access to which are Mac 10.6 and using Safari 5.* all fail to connect to selenium-webdriver.
The error is either "connection reset by peer" or "end of file".

I will be continueing to investigate.

Reported by coreyoconnor on 2013-11-16 00:17:22

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

The same issue is not present using Safari 6 on 10.7.

Reported by coreyoconnor on 2013-11-16 00:17:53

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by jmleyba on 2013-11-16 20:28:58

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

 # using irb:
 # {{{require 'selenium-webdriver'}}}
 # {{{w = Selenium::WebDriver.for :safari}}}

The expectation is for the above assignment to succeed. "w" should then be a Selenium::WebDriver::Driver
instance connected to safari. On Mac 10.6 with Safari 5.1.10 this fails.

failing configuration:

 * ruby 1.9.3 p194
 * Mac 10.6.8
 * safari 5.1.10
 * selenium-webdriver 2.37.0

passing configuration:

 * ruby 1.9.3 p194
 * Mac 10.7.5
 * Safari 6.1
 * selenium-webdriver 2.37.0

In the failing case the error is:

{{{
1.9.3p194 :003 > w = Selenium::WebDriver.for :safari
EOFError: end of file reached
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/server.rb:37:in
`read_nonblock'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/server.rb:37:in
`receive'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:70:in
`raw_execute'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:50:in
`create_session'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/remote/bridge.rb:68:in
`initialize'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:29:in
`initialize'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:47:in
`new'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:47:in
`for'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver.rb:67:in
`for'
    from (irb):3
    from /Users/demo/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'
}}}

*or*

{{{
Errno::ECONNRESET: Connection reset by peer
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/server.rb:37:in
`read_nonblock'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/server.rb:37:in
`receive'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:70:in
`raw_execute'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:50:in
`create_session'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/remote/bridge.rb:68:in
`initialize'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:29:in
`initialize'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:47:in
`new'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:47:in
`for'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver.rb:67:in
`for'
    from (irb):2
    from /Users/demo/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'
}}}

There is no console log output in the web inspector. This is not using the extension
built from source so there is no UI to access the global log. I do not know why there
is no console log output.

Reported by coreyoconnor on 2013-11-17 18:44:04

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

The same behavior is observed using jruby 1.7.4 on both platforms instead of MRI ruby.
Though, in this case, the error message is:

Errno::ECONNRESET: Connection reset by peer - Connection reset by peer
    from org/jruby/RubyIO.java:2671:in `read_nonblock'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/server.rb:37:in
`receive'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:70:in
`raw_execute'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:50:in
`create_session'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/remote/bridge.rb:68:in
`initialize'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/safari/bridge.rb:29:in
`initialize'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver/common/driver.rb:47:in
`for'
    from /Users/demo/.rvm/gems/ruby-1.9.3-p194/gems/selenium-webdriver-2.37.0/lib/selenium/webdriver.rb:67:in
`for'
    from (irb):2:in `evaluate'
    from org/jruby/RubyKernel.java:1093:in `eval'
    from org/jruby/RubyKernel.java:1489:in `loop'
    from org/jruby/RubyKernel.java:1254:in `catch'
    from org/jruby/RubyKernel.java:1254:in `catch'
    from /usr/local/bin/jirb:13:in `(root)'

Reported by coreyoconnor on 2013-11-17 18:47:51

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by jari.bakken on 2015-02-26 23:01:21

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:16:56

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant