当前位置:网站首页>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
边栏推荐
- 爱可可AI前沿推介(7.31)
- 全局平均池化层替代全连接层(最大池化和平均池化的区别)
- Error: npm ERR code EPERM
- ECCV2022: Recursion on Transformer without adding parameters and less computation!
- How to quickly split and merge cell data in Excel
- Spark学习:为Spark Sql添加自定义优化规则
- 推荐系统-召回阶段-2013:DSSM(双塔模型)【Embedding(语义向量)召回】【微软】
- PartImageNet物体部件分割(Semantic Part Segmentation)数据集介绍
- [RPI]树莓派监控温度及报警关机保护「建议收藏」
- C# using NumericUpDown control
猜你喜欢
ECCV2022: Recursion on Transformer without adding parameters and less computation!
Introduction to the PartImageNet Semantic Part Segmentation dataset
「面经分享」西北大学 | 字节 生活服务 | 一面二面三面 HR 面
动作捕捉系统用于柔性机械臂的末端定位控制
C#控件 ToolStripProgressBar 用法
C# control ToolStripProgressBar usage
【redis】发布和订阅消息
Solution for browser hijacking by hao360
对数字化时代的企业来说,数据治理难做,但应该去做
MATLAB | 我也做了一套绘图配色可视化模板
随机推荐
JSP中如何借助response对象实现页面跳转呢?
八大排序汇总及其稳定性
Selenium自动化测试之Selenium IDE
The use of C# control CheckBox
csdn发文助手问题
[Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)
Buffer 与 拥塞控制
Error: npm ERR code EPERM
Introduction to the PartImageNet Semantic Part Segmentation dataset
Network layer key protocol - IP protocol
页面整屏滚动效果
拥塞控制,CDN,端到端
龟速乘【模板】
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%
Use of C# Assembly
使用CompletableFuture进行异步处理业务
抓住金三银四的尾巴,解锁程序员面试《刷题神器》
A detailed explanation of the usage of Async and Await in C#
Detailed explanation of network protocols and related technologies
Flutter keyboard visibility