多浏览器兼容性测试(1)
RIDE已经支持多浏览器兼容性测试,例如:
firefox
ie
chrome
safari
但是,项目要求支持360极速和360安全浏览器。所以,我们需要增加代码让RIDE识别。其他浏览器类似(本地浏览器)。
说明:基于Selenium: 3.0.2
一、各浏览器webdriver
说明:
1. selenium3.x中,firefox需要下载webdriver(geckodriver.exe)。
2. 360极速和360安全浏览器的内核是chrome,目前支持内核版本45.x。拷贝两份chromedriver 2.20,可以重命名为360chromedriver & 360sechromedriver。
PS:注意,360浏览器会自动升级。请关闭自动升级。
目录:C:\Users\username\AppData\Roaming\360se6\Application\8.1.1.250\installer,找到chromeup.dll文件,删除或者重命名。
二、增加代码支持让RIDE识别360浏览器
修改selenium\webdriver目录下__init__.py代码。
目录:C:\Python27\Lib\site-packages\selenium\webdriver
from .firefox.webdriver import WebDriver as Firefox # noqa
from .firefox.firefox_profile import FirefoxProfile # noqa
from .chrome.webdriver import WebDriver as Chrome # noqa
from .chrome.options import Options as ChromeOptions # noqa
# 360 support
from .chrome360.webdriver