当前位置:网站首页>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 .
边栏推荐
- 2022.6.29-----leetcode.535
- 如何将OAK相机当做网络摄像头使用?
- The 8th "Internet +" competition - cloud native track invites you to challenge
- Basis of data analysis -- prediction model
- Understanding of strong caching and negotiation caching
- layer.prompt
- data-*属性用法
- Seven cattle image access parameters (thumbnails are small in size to avoid wasting traffic)
- 76.二叉树的最近公共祖先
- curl下载示例
猜你喜欢

Svg circle drawing path animation

Cannot retrieve repository metadata 处理记录

对强缓存和协商缓存的理解

AMAZING PANDAVERSE:META”无国界,来2.0新征程激活时髦属性

Apache inlong million billion level data stream processing

Deep learning --- the weight of the three good students' scores (2)

七牛图片访问参数(缩略图小尺寸啥的,避免浪费流量)

报错Failed to allocate graph: MYRIAD device is not opened.
![[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

暴力解决《猜名次》问题
随机推荐
SD6.23集训总结
Us judge ruled that the former security director of Uber accused of covering up hacking must face fraud charges
PHP 输出两个指定日期之间的所有日期
龙canvas动画
Redis (I) -- getting started with redis (2) -- redis data type
山东大学项目实训(八)设计轮播图进入页面
Elegant writing controller (parameter verification + unified exception handling)
Cannot retrieve repository metadata processing records
Notes on spintronics - zhangshufeng
Data analysis time series prediction
sql server备份以及还原的命令操作
Fastdfs
Adobe Premiere Basics - common video effects (cropping, black and white, clip speed, mirroring, lens halo) (XV)
Fluent's MSH grid learning
Markdown common fonts
Understanding of strong caching and negotiation caching
Stepping on the pit: json Parse and json stringify
74. maximum profit on shares
535. encryption and decryption of tinyurl / Jianzhi offer II 103 Minimum number of coins
Hello, do you have any official website samples for MySQL CDC, PostgreSQL CDC? Give me a link to learn