Robot Framework进行web ui自动化测试,浏览器配置说明

转载请注明出处,谢谢;

chrome浏览器:

1、从如下地址下载与本地浏览器版本号一致的chromedriver.exe驱动文件;

http://chromedriver.storage.googleapis.com/index.html

2、将驱动文件放置在python根路径下即可,例如D:Python27; 

ie浏览器:

1、从如下地址下载和本地selenium版本号及操作系统一致的iedriver;

http://selenium-release.storage.googleapis.com/index.html

2、将驱动文件放置在python根路径下即可,例如D:Python27;

3、将页面缩放设置为100%;

4、勾选上ie浏览器所有区域安全模式的“启动保护模式”;

firefox浏览器

1、如果本地使用selenium 2.X版本,下载对应版本的firefox浏览器;

  下载地址:http://ftp.mozilla.org/pub/firefox/releases/

  如果使用selenium3.0,需确保下载有geckodriver且路径在path中。目前selenium3.0支持火狐45及以上的版本。

2、关闭firefox网络的代理;

3、在open browser时添加ff_profile_dir参数,该参数的值为selenium2Library的源码里resources目录里firefoxprofile的路径值;

原文地址:https://www.cnblogs.com/apple2016/p/7833607.html