UI automated testing mostly simulates actual production scenario operations by locating page elements. However, when writing automated test scripts, elements often cannot be located. The reasons are nothing more than two situations: 1. There is a frame; 2. There is no waiting setting. This happens because the code running speed and the browser loading and […]
Tag: selenium
Selenium+JQuery positioning method and application
Selenium + JQuery positioning method and application 1 JQuery positioning instructions 1.1 JQuery positioning method 1.2 The three most commonly used operations in JQuery 1.3 JQuery an example 1.3.1 Username input box 1.3.2 Password input box 1.3.3 Login button 1.3.4 Complete code 2 JQuery selectors 2.1 List of commonly used selectors 2.2 Thinking 1. Selenium […]
selenium/webdriver operating principle and mechanism
I’ve been looking at some low-level stuff recently. Driver translates as driver, meaning driver. If you compare webdriver to a driver, it is very appropriate. We can compare WebDriver driving a browser to a taxi driver driving a taxi. There are three roles when driving a taxi: · Passenger: He/she tells the taxi driver where […]
Various methods of positioning web page elements using Selenium!
To use Selenium to automate operations, the first thing to do is to open a URL link through the get() method of webdriver. After opening the link and completing the page loading, you can perform various operations on the page through the interface provided by Selenium. Let’s learn how to find elements. 3.1 Find and […]
Various methods of positioning web page elements using Selenium!
To use Selenium to automate operations, the first thing to do is to open a URL link through the get() method of webdriver. After opening the link and completing the page loading, you can perform various operations on the page through the interface provided by Selenium. Let’s learn how to find elements. 3.1 Find and […]
Various methods of positioning web page elements using Selenium!
To use Selenium to automate operations, the first thing to do is to open a URL link through the get() method of webdriver. After opening the link and completing the page loading, you can perform various operations on the page through the interface provided by Selenium. Let’s learn how to find elements. 3.1 Find and […]
selenium xpath positioning
selenium-xpath positioning <span style=”background-color:#2d2d2d”><span style=”color:#cccccc”><code class=”language-javascript”>element_xpath <span style=” color:#67cdcc”>=</span> driver<span style=”color:#cccccc”>.</span><span style=”color:#f08d49″>find_element</span>< span style=”color:#cccccc”>(</span>By<span style=”color:#cccccc”>.</span><span style=”color:#f8c555″>XPATH </span><span style=”color:#cccccc”>,</span> <span style=”color:#7ec699″>’xpath expression'</span><span style= “color:#cccccc”>)</span> </code></span></span> xpath positioning instructions xpath is XML Path Language, which is specified by the International Organization for Standardization W3C. It is a language used to determine the location of XML document nodes. […]
[Automated Testing] Web automation framework based on Selenium + Python
1. What is Selenium? Selenium is a browser-based automation tool that provides a cross-platform, cross-browser end-to-end web automation solution. Selenium mainly consists of three parts: Selenium IDE, Selenium WebDriver and Selenium Grid: ? 1. Selenium IDE: An extension of Firefox, it can record and playback, and can export the recorded operations into test cases in […]
selenium element positioning and operation
Note: This blog is based on selenium 4.1.0 In selenium, if you want to operate on elements, you generally need the following steps: View the element attributes in the browser so that selenium can find the element on the page Create element objects in code Element operation, obtaining element information View element attributes Enter developer […]
selenium waits for element loading, element manipulation, js execution, switching tabs, logging into cnblogs (chrome), and drawer semi-automatic likes
selenium waits for elements to load Code operations are very fast ? \dashrightarrow ? Some tags have not been loaded yet ? \dashrightarrow ? Can’t find it even if I look for it ? \dashrightarrow ? will report an error Set wait: show wait, hermit wait # Search for a certain tag. If it cannot […]