I've been following wiki to setup safari extension for Selenium 2.48.0:
This works mostly, but occasionally getting some weird errors in my tests scripts (that are written in Ruby/Capybara) like:
Selenium::WebDriver::Error::NoSuchElementError:
Selenium::WebDriver::Error::NoSuchElementError
# /Users/admin/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/common/search_context.rb:64:in `rescue in find_element'
# /Users/admin/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/common/search_context.rb:55:in `find_element'
# ./lib/about.rb:94:in `click_read_more_work'
# ./spec/check_about_links.rb:91:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# IO::EAGAINWaitReadable:
# Resource temporarily unavailable - read would block
# /Users/admin/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/safari/server.rb:63:in `read_nonblock'
and:
Selenium::WebDriver::Error::UnknownError:
Session is executing: findElements; cannot set current to: findElements
# /Users/admin/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/safari/bridge.rb:88:in `raw_execute'
# /Users/admin/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/remote/bridge.rb:627:in `execute'
# /Users/admin/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/remote/bridge.rb:606:in `find_elements_by'
# /Users/admin/.rvm/gems/ruby-2.2.1/gems/selenium-webdriver-2.53.0/lib/selenium/webdriver/common/search_context.rb:84:in `find_elements'
Capybara is referred to the latest version of selenium webdriver gem: 2.53.0 but from my understanding of above's article, safari extension from Selenium 2.53.0 needs to exist in Safari browser as well.
This download link does not contain separate safari extension file:
in contrast to version 2.48.0 which does: http://selenium-release.storage.googleapis.com/index.html?path=2.48/
Is there something changed in the installing safari extension and am I missing something?
Note: Safari version is 9.1.1
Thanks in advance,