当前位置:网站首页>The Selenium IDE of the Selenium test automation
The Selenium IDE of the Selenium test automation
2022-07-31 13:47:00 【Illusory private school】
Quality resource sharing
Learn route directions (click to unlock) | Knowledge Positioning | Crowd targeting |
---|---|---|
🧡 Python actual WeChat ordering applet 🧡 | Advanced | This course is a perfect combination of python flask+WeChat applet, from project construction to Tencent Cloud deployment, to create a full-stack meal ordering system. |
Python quantitative trading practice | Entry Level | Take you hand in hand to build a quantitative trading system that is easy to expand, safer and more efficient |
Introduction
Selenium IDE is a handy tool for web automation, essentially a browser plugin.The plug-in supports Chrome and Firefox browsers, and has functions such as recording, writing and playback operations, and can quickly implement automated Web testing
Scenarios
- The positioning of Selenium IDE itself is not for complex automation scenarios, but for some simple scenarios with extremely high requirements for efficiency
- Used to find bugs, reproduce bugs, and improve communication efficiency
- Improve use case execution efficiency and improve regression efficiency
- The recording function can export the code and save the time of automatic code writing
Install:
- Open Firefox browser and search for Firefox plugins
- Click to select and enter to install
Basic Operations
Click the icon to enter
Record and Playback
- Click the first option and we record a new project
- Enter a project name
- Enter the URL to record
- Operate the page in the recording state after jumping to the page
- Pause the recording after the operation, the status is shown as below
- Click the button for playback
Note: The save button in the upper right corner of the above picture can be used to save the recording script
7.
8. Scripts can be exported to save time writing use cases
| 123456789101112131415161718192021222324252627 | # Generated
by
Selenium IDE``import pytest``import
time``import json``from
selenium import webdriver``from
selenium.webdriver.common.``by
import
By``from
code>selenium.webdriver.common.action_chains import ActionChains``from
selenium.webdriver.support import expected_conditions``from
selenium.webdriver.support.wait import WebDriverWait``from
selenium.webdriver.common.keys import Keys``from
selenium.webdriver.common.desired_capabilities import DesiredCapabilities
class TestFirsttest():``def setup_method(self, method):``self.driver = webdriver.Firefox()``self.vars = {}
def teardown_method(self, method):``self.driver.quit()
def test_firsttest(self):``self.driver.get(``"https://www.baidu.com/"``)``self.driver.set_window_size(1146, 693)``self.driver.find_element(``By``.ID,
"kw"``).click()``self.driver.find_element(``By``.ID,
"kw"``).send_keys(``"helloworld"``)``self.driver.find_element(``By``.ID,
"su"``).click()
|
Test Suite
- In the same project, you can manage multiple test cases at the same time.Click the "+" button in the test view of Selenium IDE to add a new test case, or right-click a test case and select the Duplicate option in the context menu to copy
- If each module has dozens of test cases, then these use cases will be very difficult to maintain under the corresponding panel, so that it is impossible to tell which module each use case belongs to.Selenium IDE provides a feature called "Test Suite" to manage test cases
边栏推荐
- golang-gin-优雅重启
- LeetCode·304竞赛·6132·使数组中所有元素都等于零·模拟·哈希
- MySQL玩到这种程度,难怪大厂抢着要!
- 代码随想录笔记_哈希_454四数相加II
- Six Stones Programming: No matter which function you think is useless, people who can use it will not be able to leave, so at least 99%
- 技能大赛训练题: 子网掩码划分案例
- Network layer key protocol - IP protocol
- 多智能体协同控制研究中光学动作捕捉与UWB定位技术比较
- The operator,
- 【redis】发布和订阅消息
猜你喜欢
对数字化时代的企业来说,数据治理难做,但应该去做
A detailed explanation of the usage of Async and Await in C#
Error IDEA Terminated with exit code 1
How IDEA runs web programs
Reasons and solutions for Invalid bound statement (not found)
C# control ToolStripProgressBar usage
[Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)
All-round visual monitoring of the Istio microservice governance grid (microservice architecture display, resource monitoring, traffic monitoring, link monitoring)
MATLAB | 我也做了一套绘图配色可视化模板
The use of C# control CheckBox
随机推荐
新款现代帕里斯帝预售开启,安全、舒适一个不落
Shell脚本经典案例:文件的备份
技能大赛训练题:MS15_034漏洞验证与安全加固
抓住金三银四的尾巴,解锁程序员面试《刷题神器》
Grab the tail of gold, silver and silver, unlock the programmer interview "Artifact of Brushing Questions"
分布式锁有哪些,怎么实现(分布式锁的三种实现的对比)
百度网盘安装在c盘显示系统权限限制的解决方法
ADS communicate with c #
Batch大小不一定是2的n次幂!ML资深学者最新结论
全局平均池化层替代全连接层(最大池化和平均池化的区别)
基于神经网络的多柔性梁耦合结构振动控制
C#控件CheckBox的使用
CodeIgniter 打开错误日志
IDEA can't find the Database solution
Unity study notes Description of AVPro video jump function (Seeking)
滑窗法切分数据
模拟量差分和单端(iou计算方法)
IDEA如何运行web程序
基于模糊预测与扩展卡尔曼滤波的野值剔除方法
DELL SC compellent 康贝存储系统怎么抓取配置信息