Easily implement a Python+Selenium automated testing framework

First of all, you have to know what is Selenium? Selenium is a browser-based automated testing tool that provides a cross-platform, cross-browser end-to-end web automation solution. Selenium mainly includes three parts: Selenium IDE, Selenium WebDriver and Selenium Grid. Selenium IDE: An extension of Firefox, it can record and play back, and export the recorded operations […]

One article to understand the use of selenium and the installation of various drivers

1. Selenium simulated login Table of Contents Driver Installation Baidu example find node action chain run js get node Switch Frame delay waiting Tab Anti-shield headless mode Previously, requests and other crawling urls are ready-made, and you can request directly, but if you add encrypted parameters, such as token, sign, etc., in addition to js […]

Java+selenium makes web-side automated test code

This was written a long time ago, the code may look a bit messy, just take a look () After all, writing this in java is not mainstream. You need to add two package dependencies to the maven file first Selenium mirror address (https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java) TestNG mirror address (https://mvnrepository.com/artifact/org.testng/testng) The code in the figure is as […]

Software testing/test development丨SeleniumIDE automation use case recording, test case structure analysis

This article is a sharing of learning notes for students of Hogwarts Test Development Society Original link: https://ceshiren.com/t/topic/24832 1. SeleniumIDE use case recording SeleniumIDE use case recording usage scenario Just started UI automation testing Poor team code base After the technology grows, the learning value is not high SeleniumIDE download and installation Official website: https://www.selenium.dev/ […]

[Selenium automated testing] How to locate page elements and how to operate page elements

selenium element positioning There are 8 ways for selenium to locate elements. fild_element(by,value): by indicates the positioning method used, and the positioning method can refer to the By class. value represents the value, for example: locate according to id By.ID, value=value of the id attribute. This method returns the element object, and the return value […]

Selenium operates Google Chrome, the driver uses the latest version 113, and the startup program reports 403 solutions

Recently, I updated Google Chrome to the latest version [113.0.5672.127]. Then our friends who usually type codes or do tests know that our selenium operation driver version must also be upgraded to the corresponding version, otherwise it will not work, but I will update the two versions today. After upgrading to the latest version, the […]