b = Watir::Browser.new :firefox, :profile => profile
but it does not seem to work
the Error i get it
/usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/common/platform.rb:118:in assert_file': not a file: "/tmp/firefox/" (Selenium::WebDriver::Error::WebDriverError) from /usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/common/platform.rb:123:inassert_executable’
from
/usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/firefox/binary.rb:101:in
`path=’
b = Watir::Browser.new :chrome, :switches =>
%w[–proxy-server=xx.xx.xx.xx:3128]
/usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/chrome/service.rb:50:in start': unable to connect to chromedriver http://127.0.0.1:9515 (Selenium::WebDriver::Error::WebDriverError) from /usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/chrome/bridge.rb:15:ininitialize’
from
/usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/common/driver.rb:37:in new' from /usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/common/driver.rb:37:infor’
from
/usr/local/lib/ruby/gems/2.1.0/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver.rb:67:in for' from /usr/local/lib/ruby/gems/2.1.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/browser.rb:46:ininitialize’
from testwaitir.rb:7:in new' from testwaitir.rb:7:in’
Looks like it’s timing out trying to connect to Firefox.
Does it work without using a Proxy? (default)
Does it work without using the secondary Firefox installation? (default)
Is your Firefox version compatible with webdriver?
Does a Firefox window open when doing this?
If you aren’t in a graphical environment you’ll need a headless browser.
Alternatively you could have the task run within GNOME but be triggered
by a remote event or schedule, or use a remote-desktop type of
application like xlaunch