开发者

Chrome browser opens and closes using watir webdriver

开发者 https://www.devze.com 2023-03-09 18:37 出处:网络
I have the following code: require \"rubygems\" require \"watir-webdriver\" browser = Watir::Browser.new(:chrome)

I have the following code:

require "rubygems"
require "watir-webdriver"
browser = Watir::Browser.new(:chrome)
browser.goto "http://google.com"

When i run this code, the browser opens the site google.com and then closes automatically Why does it close 开发者_如何学JAVAautomatically? My chrome version is 12.0.742.68


The Chrome driver will close all browser instances when your program exits. It's a known issue, and its priority was fortunately bumped today - look for a fix soon.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号