How to drive Selenium choose?

      A friend recently Selenium also want to learn and then asked me what Python version should be used, and pretend to drive, what browser, and then here today to sum up

 

       Python version if personal use is 3.7, more recommended, the more popular is the Python 3.X version, the new version is more, some mainstream library has been largely supported Python3.X, libraries are not supported by positive Python3.x to migrate, so Python3.X version of the board.

 

       Currently supported browsers drivers are:

       1)IE

               Use ie browser web automated testing, selenium-java.jar ie drive packages and are synchronized (as shown below), so only we need to focus ie drivers and ie browser version of how to match.

               If you use ie6, ie7 use selenium 2.42 or 2.40 version.

               If you are using ie8-ie11 recommended version after 2.50.

       Mirroring address: https: //npm.taobao.org/mirrors/selenium/

    2)Chrome

              Using the chrome browser web automated testing, selenium-java.jar are generic only need to focus on driving chrome and chrome browser version corresponds to.

              After 70.0.3538.16, chrome and chrome drive browser is one to one. The previous version will be described in a notes.txt

     Mirroring address: https: //npm.taobao.org/mirrors/chromedriver/

    3)Firefox           

             使用Firefox浏览器进行web自动化测试,相对于ie和chrome更复杂一些。需要selenium-java.jar、firefox驱动、firefox浏          览器都匹配。这个匹配关系在github上firefox驱动项目releases中

    镜像地址:https://github.com/mozilla/geckodriver/releases

        至于装哪个驱动,取决于你自己,可以都装也可以只装一个,都装的话可以更好的做兼容性测试,这样更方便。

 

                                                                                                                                    (以上文字仅代表作者个人看法,以上图片均来自网络)

Guess you like

Origin www.cnblogs.com/Orange-ysen/p/11137365.html