Skip to content

Guide for Starting a Session #173

@AbdulwahabAlbahrani

Description

@AbdulwahabAlbahrani

How can I choose the browser?
when I tried
browser = Watir::Browser.new :firefox
I get this error:
'
/usr/local/lib/ruby/gems/3.0.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/firefox/driver.rb:31:in new': wrong number of arguments (given 1, expected 0) (ArgumentError) from /usr/local/lib/ruby/gems/3.0.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/common/driver.rb:54:in for'
from /usr/local/lib/ruby/gems/3.0.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver.rb:88:in for' from /usr/local/lib/ruby/gems/3.0.0/gems/watir-6.19.1/lib/watir/browser.rb:46:in initialize'
from testWatir.rb:4:in new' from testWatir.rb:4:in

'
'

thank you for this amazing tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions