3

I have only managed to execute tests with Google Chrome (using the chromedriver).

Can anyone give an example how to start executing tests with Chromium?

Ripon Al Wasim
  • 34,088
  • 37
  • 146
  • 165
user1534160
  • 23
  • 2
  • 6

2 Answers2

3

Make sure your Chromium binary can be located or set it explicitly.

Selenium::WebDriver::Chrome.path = '/usr/bin/chromium'
driver = Selenium::WebDriver.for :chrome
browser = Watir::Browser.new driver
p0deje
  • 3,293
  • 1
  • 22
  • 36
  • Is it possible to use Chrome driver only using by watir-webdriver. in the above code example, it needs to use selenium-webdriver also. – Ripon Al Wasim Jan 13 '15 at 06:29
  • slight tweek worked for me: `Selenium::WebDriver::Chrome.driver_path = '/usr/lib/chromium'` I think the method may have changed from `path` to `driver_path`. And my binary was installed in `lib`. – eaton9000 Nov 27 '18 at 05:33
1

I think it should be possible, you just have to provide path to Chromium. A few pages you should check:

Community
  • 1
  • 1
Željko Filipin
  • 52,828
  • 28
  • 91
  • 124