I am fairly new to automation testing and was trying the following code.
While trying to load firefox browser by the following code
@browser = Watir::Browser.new :firefox
@browser.goto "https://www.linkedin.com/"
When(/^I enter username as (.*?)$/) do |username|
@browser.element(:xpath => "//[@id='login-email']").set username
end
....
.... and so on
I am getting the following on the first browser load line.
undefined method
col_span' for classWatir::TableCell' (NameError)
I am using Ruby (2.5), Cucumber(1.3.2), Watir(4.0.2) and Selenium-webdriver(2.53.4).
Any help would be great. Thanks