当前位置:网站首页>Cross browser testing of selenium
Cross browser testing of selenium
2022-06-29 18:58:00 【It's Joe Joe】
Selenium Standalone Server
Important components of remote testing , Can pass RemoteWebDriver Class listens through a specific port selenium According to the command given by the test script .Selenium Standalone Server Almost all browsers are supported , Including based on Appium Support mobile platforms .
Selenium Standalone Server rely on JRE6 The above environment runs , It has its own Java Language development .
Download address :http://docs.seleniumhq.org/ download/
start-up
Selenium Standalone Server Can be started in different modes or roles .
On the remote machine jar Execute the following command under the package directory to start :
java –jar selenium-server-standalone-2.41.0.jar
The default port number is 4444.
Browser input :http://:4444/wd/hub/static/resource/ hub.html
You can see Selenium Standalone Server Interface after service startup .
Perform the test
Selenium Server To perform tests on, you need to use RemoteWebDriver, The Remote Class will interact with as a client selenium Server Interact , To run the test on a remote machine .
in addition , We also need to set up desired_capabilities, That is, the configuration of the browser and operating system , And some other related configurations needed to run the test .
desired_caps = {
}
desired_caps['platform'] = 'WINDOWS'
desired_caps['browserName'] = 'firefox'
Then create Remote Class instance passed to desired_capabilities, When the script executes ,Remote Class will connect and request Selenium Server start-up Windows On the platform Firefox The browser performs tests .
self.driver = webdriver.Remote('http://192.168.1.103:4444/wd/hub', desired_caps)
To configure Chrome Support :
chrome.driver="C:\SeDrivers\chromedriver.exe" -jar selenium-server-standalone-2.41.0.jar
Selenium Grid
Selenium Grid Tests can be distributed across several physical or virtual machines , So as to realize distributed or parallel test execution , To achieve the purpose of less test execution cycle and cross browser testing .
边栏推荐
- 元素等待机制
- Weibo comments on high-performance and high availability architecture design (module 5 of architecture practice camp)
- 第三方工具與框架集成
- 您好,请问mysql cdc、和postgresql cdc有官网样例吗?给个链接学习了
- Seven cattle image access parameters (thumbnails are small in size to avoid wasting traffic)
- Cannot retrieve repository metadata 处理记录
- 剑指 Offer 34. 二叉树中和为某一值的路径-dfs法
- PHP 输出两个指定日期之间的所有日期
- 七牛图片访问参数(缩略图小尺寸啥的,避免浪费流量)
- 数据分析基础--预测模型
猜你喜欢

山东大学项目实训(七)添加导航栏选择城市

The strategy of convertible bonds -- - (cake sharing, premium, forced redemption, downward revision, double low)

Several code screenshots beautification tools worth collecting by programmers

Chapter 02_ MySQL data directory
![[how the network is connected] Chapter 3 explores hubs, switches and routers](/img/a9/39f7c474331b7de0bdaf6e59f0d15b.png)
[how the network is connected] Chapter 3 explores hubs, switches and routers

Shandong University project training (VIII) design rotation map entry page

CentOS 7.5 install MySQL 8.0.27---yum

Machine learning 8-artificial neural network

2. how to install MySQL database in Galaxy Kirin offline mode

Data warehouse model layered ODS, DWD, DWM practice
随机推荐
535. encryption and decryption of tinyurl / Jianzhi offer II 103 Minimum number of coins
Svg circle drawing path animation
Meta agent model can be migrated to resist attacks
Interview question 10.10 Rank of digital stream
美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控
PHP 输出两个指定日期之间的所有日期
第02章_MySQL的数据目录
Anaconda安装并配置jupyter notebook远程
MySQL 企业级开发规范
PHP实现二维数组按指定的键名排序的方法
Data warehouse model layered ODS, DWD, DWM practice
Cannot retrieve repository metadata 处理记录
isalpha()方法介绍
BeanUtils属性复制的用法
2. 银河麒麟离线模式下如何安装MySQL数据库
Seven cattle image access parameters (thumbnails are small in size to avoid wasting traffic)
第三方工具與框架集成
Adobe Premiere foundation - cool text flash (14)
How to use an oak camera as a webcam?
Apache InLong百万亿级数据流处理