简体   繁体   中英

watir get console error

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"

容易,在最后添加以下行console_logs = browser.driver.manage.logs.get(:browser)将console_logs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM