当前位置:网站首页>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 | # GeneratedbySelenium IDE``import pytest``importtime``import json``fromselenium import webdriver``fromselenium.webdriver.common.``byimportBy``fromcode>selenium.webdriver.common.action_chains import ActionChains``fromselenium.webdriver.support import expected_conditions``fromselenium.webdriver.support.wait import WebDriverWait``fromselenium.webdriver.common.keys import Keys``fromselenium.webdriver.common.desired_capabilities import DesiredCapabilitiesclass 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)
- 深度剖析 Apache EventMesh 云原生分布式事件驱动架构
- Invalid bound statement (not found)出现的原因和解决方法
- [RPI]树莓派监控温度及报警关机保护「建议收藏」
- MySQL玩到这种程度,难怪大厂抢着要!
- 技能大赛训练题:ftp 服务攻防与加固
- Grab the tail of gold, silver and silver, unlock the programmer interview "Artifact of Brushing Questions"
- DELL SC compellent 康贝存储系统怎么抓取配置信息
- 模拟量差分和单端(iou计算方法)
- C#控件ListView用法
猜你喜欢

关于MySQL主从复制的数据同步延迟问题

AI cocoa AI frontier introduction (7.31)

Solution for browser hijacking by hao360

推荐系统-召回阶段-2013:DSSM(双塔模型)【Embedding(语义向量)召回】【微软】

浏览器被hao360劫持解决办法

3.爬虫之Scrapy框架1安装与使用

LeetCode·304竞赛·6132·使数组中所有元素都等于零·模拟·哈希

ICML2022 | 面向自监督图表示学习的全粒度自语义传播

【蓝桥杯选拔赛真题46】Scratch磁铁游戏 少儿编程scratch蓝桥杯选拔赛真题讲解

C#控件ListView用法
随机推荐
The use of C# control CheckBox
How to quickly split and merge cell data in Excel
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%
C#中+=的用法
/run/NetworkManager占用空间过大
C# using ComboBox control
推荐系统-召回阶段-2013:DSSM(双塔模型)【Embedding(语义向量)召回】【微软】
多智能体协同控制研究中光学动作捕捉与UWB定位技术比较
leetcode:2032. 至少在两个数组中出现的值
Four ways to clear the float and its principle understanding
C#Assembly的使用
endnote引用
How IDEA runs web programs
IDEA如何运行web程序
4.爬虫之Scrapy框架2数据解析&配置参数&数据持久化&提高Scrapy效率
技能大赛训练题: 子网掩码划分案例
C# List用法 List介绍
C# control StatusStrip use
六石编程学:不论是哪个功能,你觉得再没用,会用的人都离不了,所以至少要做到99%
networkx绘制度分布