Unable to connect to browser using ruby selenium webdriver

后端 未结 3 1992
名媛妹妹
名媛妹妹 2021-01-02 05:01

I tried to run some basic automated tests using ruby selenium webdriver. The same code works perfectly on my home computer, but fails on my work computer which is behind a p

3条回答
  •  既然无缘
    2021-01-02 05:46

    require 'rubygems'
    require 'selenium-webdriver'
    ENV['NO_PROXY']="127.0.0.1"
    driver = Selenium::WebDriver.for :firefox
    driver.get "http://google.com"
    

提交回复
热议问题