0
votes

How I can check browser console if there are any error?

I'm following the watir ubuntu tutorial:

require "selenium-webdriver"
browser = Selenium::WebDriver.for :firefox
browser.get "http://watir.com"
1
You don't necessarily need to. Errors from commands you run should be automatically forwarded to your ruby code.max pleaner

1 Answers

0
votes

Easy , add this lines at the end console_logs = browser.driver.manage.logs.get(:browser) puts console_logs