Automated test steps
1, Page element positioning and operation
What are page elements: all elements that can be seen on the browser, such as pictures, text boxes, buttons, drop-down lists, videos, etc.
What is automation? The code controls the elements on the browser and makes them "move" (execute according to the script design logic)
Main steps of aut ...
Posted by electronish on Wed, 09 Mar 2022 11:19:35 +0100
Seleniu m: common operations of elements
Selenium element operation
1. In the process of using Selenium, it is not enough to locate the element and operate the browser WebDriver object. More importantly, we need to operate an element
(1) for example: input data into the input box, click the button, etc
2. After locating an element using the element location method, find_element_by_* ...
Posted by eddierosenthal on Tue, 08 Mar 2022 15:04:14 +0100
Extension of xpath location method for web automation
1, Introduction to xpath
xpath is an XML path language, which can be used to determine the location of elements in XML documents and find elements through element paths. HTML is an implementation of XML, so xpath is a very powerful positioning method.
1. Formula: / / tag name [@ attribute = 'value of attribute']
//*[@ id="kw"] -- r ...
Posted by ctimmer on Tue, 08 Mar 2022 14:04:01 +0100
How do I handle Web tables in Selenium WebDriver?
When information needs to be displayed in tabular format, web tables or data tables are usually used. In essence, the displayed data can be static or dynamic. You often see examples in e-commerce portals where product specifications are displayed in Web tables. With its widespread use, you often encounter the need to Selenium test Automate s ...
Posted by flforlife on Thu, 03 Mar 2022 21:06:27 +0100
web automation notes 13: parameterization, skipping use cases and generating HTML test reports
catalogue
Parameterization
Skip use case
Generate HTML test report (Master)
Parameterization
1. Why parameterization Solve the problem of redundant code
2. What is parameterization Description: dynamically obtain parameters according to requirements
3. Parametric application scenario Scenario: solve the problem of the same busines ...
Posted by posidon on Tue, 22 Feb 2022 07:00:26 +0100
Python boss takes you to crack with a crawler -- sliding verification code identification
Being a crawler will always encounter all kinds of anti climbing restrictions. The first defense line of anti climbing often appears when logging in. In order to limit the automatic login of crawlers, all families have tried their best. The so-called way is one foot high and the devil is one foot high.
Small class
Steps: (1) Calculate sli ...
Posted by volatileboy on Thu, 17 Feb 2022 23:18:01 +0100
Crawling dynamic data - simulation browser (Selenium introduction to actual combat)
catalogue
First, simulate the browser's environmental preparation.
1. Introduction to selenium
2.Selenium installation
3. Install WebDriver
(1) Installing chromedriver
(2) Add chromedriver to environment variable
2, Example: use Selenium operation browser to obtain QQ music list data
1. Start the browser
2. Use webdriver to open qq mus ...
Posted by GremlinP1R on Thu, 17 Feb 2022 21:50:25 +0100
Python implementation of regular update of ChromeDriver
Python implementation of regular update of ChromeDriver
Selenium, as a UI automation testing framework based on web pages, is deeply loved by developers and occupies a place in the field of automation; Selenium framework, together with its configured tool ChromeDriver, is used to help developers complete all kinds of work. At the same time, th ...
Posted by dreglo on Wed, 16 Feb 2022 20:02:04 +0100
UI automation test: Selenium+PO mode + Pytest+Allure integration
At present, I haven't involved in webui automatic testing in my work, but in order to improve my technology, it's not harmful to learn more. There's no more nonsense. At present, the mainstream webui testing framework should still be selenium. Considering maintainability, expansibility and reusability, we use PO mode to write our script, This d ...
Posted by bimo on Mon, 14 Feb 2022 12:52:35 +0100
Selenium+Python download and upload files
catalogue
This article records the automated test script I wrote using Selenium. The function is to download files from the web page and upload the downloaded files to another page. At the same time, some problems and solutions encountered in the process of writing are recorded
Download file function
Google browser download settings
Ent ...
Posted by Sorrow on Mon, 14 Feb 2022 07:05:16 +0100