Why selenium can't call Chrome or Firefox

Source: Internet
Author: User

Now the open source tools we use are generally selenium, and of course the benefit is that you can invoke different browsers. Contains the Ie\google\firefox and so on, but the call will appear when its browser cannot be called. The reason is simple, selenium and its browser version does not match. In general, selenium calls are caused by each driver version that is lower than the browser version.

Specific situation:

C:/ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.43.0/lib/selenium/webdr

Iver/remote/response.rb:52:in ' ASSERT_OK ': unknown error:unable to discover Ope

n Pages (selenium::webdriver::error::unknownerror)

The change is: I called Chromedriver to call the Chrome browser, but always prompted me to this error.

Another error in Chrome browser prompted: "–ignore-certificate-errors", of course, this problem can also be resolved by the Chrome browser: Right-click Browser-"Shortcut open mode-" target: "C:\Program files\ Google\chrome\application\chrome.exe "–ignore-certificate-errors-" Click the Apply button, so you can solve the problem of the change.

Then the selenium can not call the Chrome browser, just download the latest version of Chromedriver, and then put it in the folder.

In another case, the browser version is too low, you just need to upgrade the browser.

Selenium Updated Website: http://docs.seleniumhq.org/download/

Why selenium can't call Chrome or Firefox

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.