Explanation of selenium key knowledge
1, Explicit and implicit waiting:
1. Direct wait:
Forced wait, the thread sleeps for a period of time
time.sleep(3)
2. Implicit wait:
Set a waiting time, and poll to find out whether the element appears (0.5 seconds by default). If the element appears within the waiting time, exit the waiting. If it does not appear, throw an exception
se ...
Posted by Artem Kozmin on Sun, 13 Feb 2022 09:52:15 +0100
Using selenium python to realize basic automatic testing
Installing selenium
Open the command control character input: pip install -U selenium
Firefox browser installation firebug: www.firebug.com COM, debug all website languages and debug functions
Selenium IDE is a plug-in embedded in Firefox browser to realize the recording and playback function of simple browser operation. The script recorded ...
Posted by olly79 on Tue, 08 Feb 2022 14:15:43 +0100
Build Python 3.0 on linux server 7 + selenium + Firefox headless
1.1 build Python 3 seven
This article chooses to take Alibaba cloud server CentOS 7.6 operating system as an example After tossing around for about a whole day, I found that basically all the python 3 installations are the most stable. However, I tried many articles on installing 3.7, which ended in failure. What they wrote was not bad. But ...
Posted by Catharsis on Wed, 02 Feb 2022 18:19:20 +0100
It is the first time to use Selenium to control Google browser and carry out some simple automation operations
Attach the official website link first selenium and Document link
The introduction and examples on the official website are relatively simple and easy to use. You can refer to the official documents for learning.
introduce
Selenium is a comprehensive project of a series of tools and libraries that support the automation of web browsers.
Sel ...
Posted by Ambush Commander on Sun, 30 Jan 2022 07:47:06 +0100
Amazon anti crawler? Take you step by step to analyze and cross Amazon's anti crawler mechanism
Hello, I'm lex. I like bullying Superman. Lex
Areas of expertise: python development, network security penetration, Windows domain controlled Exchange architecture
Today's focus: analyze and cross Amazon's anti crawler mechanism step by step
it happened like this
Amazon is the world's largest shopping platform
Many commodity informatio ...
Posted by NateDawg on Sat, 29 Jan 2022 22:42:28 +0100
Automated testing selenium--webdriver common API s
Automated testing selenium (2) – webdriver common API s
Composition of simple script
1. Import the required package in the script header;
2. Get the driver of the browser;
3. Use browser driver to operate the text system to be tested;
4. Close the browser after the test.
Common API s of webdriver:
1. Element positioning: object pos ...
Posted by ojsimon on Sat, 29 Jan 2022 03:04:59 +0100
[Python from zero to one] ten Selenium crawls online encyclopedia knowledge in ten thousand words (necessary skills for NLP corpus construction)
Welcome to "Python from zero to one", where I will share about 200 Python series articles, take you to learn and play, and see the interesting world of Python. All articles will be explained in combination with cases, codes and the author's experience. I really want to share my nearly ten years of programming experience with you. I ho ...
Posted by qaokpl on Mon, 24 Jan 2022 09:25:56 +0100
Introduction and practice of Python+Selenium Foundation
1, Selenium+Python environment construction and configuration
1.1 introduction to selenium
Selenium is a web automated testing tool. Many students who study functional automation begin to prefer selenium because it has many advantages over QTP:
Free, and you don't have to worry about cracking QTPCompact, it is just a package for differen ...
Posted by rakennedy75 on Mon, 24 Jan 2022 06:31:16 +0100
selenium set waiting notes
Set element wait: webdriver provides two types of element waiting: explicit waiting and implicit waiting
1, Explicit wait Explicit wait means that the webdriver continues to execute when a condition is satisfied. Otherwise, a timeout exception will be thrown when the maximum time is reached
from selenium import webdriver
from selenium.webdriv ...
Posted by mikebyrne on Sat, 22 Jan 2022 21:48:25 +0100
Implementation of web automatic clock in with Python + selenium
Implementation of web automatic clock in with Python + selenium
Summary:
Probably in the context of XX, you need to log in to the website every day to fill in the body temperature and location information, analyze the logic of sending the request during login, and realize automatic clock out through Python selenium.
thinking
Operate the ...
Posted by XaeroDegreaz on Thu, 20 Jan 2022 08:20:03 +0100