Selenium automatically logs in to the website, screenshots and Requests to capture the content of the webpage after login. Let's get to know each other.
Selenium: a comprehensive project of a series of tools and libraries supporting Web browser automation.
Requests: the only non transgenic Python HTTP library, which can be safely enjoyed by ...
Posted on Sun, 31 May 2020 18:01:20 -0700 by plapeyre
Before that, Xiaobian shared the Python+selenium+unittest+HTMLTestRunner unit test framework. After a lot of time, they didn't touch the code for a long time. When it was opened, it was a clanging error report. A line of striking red error report reminded me that the code was updating. Why don't you make progress? There is nothing in-depth. The ...
Posted on Thu, 14 May 2020 00:01:11 -0700 by AoA_Falcon
1, Principle of querying the remaining tickets
The normal user's web browser usually enters 12306 official website to query the remaining tickets. You can click to query the starting station, terminal station and date. If you use Python to operate, there are two schemes. One is based on selenium 2 automatic framework ...
Posted on Tue, 05 May 2020 05:38:20 -0700 by Dude0
Recently, it has been found that Taobao's cookie s on the server are always in the state of not being logged in. When Taobao logs in, it will force a slider. Moreover, by simulating the slider, it will always prompt:
< div id = "nocaptcha" class = "NC container TB login" data NC IDX = "1" style = " ...
Posted on Mon, 04 May 2020 13:16:15 -0700 by CallItKarma
1. Action Input Box
2. Operation checkbox
3. Operation select tag
4. Operation button
1. Action Input Box
The operation input box is divided into two steps as follows
Step 1: Find this element
Step 2: Fill in the data using send_keys(value)
The following is an example code:
inputTag = driver.find_el ...
Posted on Thu, 09 Apr 2020 22:55:07 -0700 by superhaggis
Recently suffered a 10,000-point attack, due to problems in the company's business, less heavy work tasks, time to explore selenium+python automated testing, combined with the information found on the Internet to write their own framework for web automated testing, as I am also just beginning to learn python, this automation framework has been ...
Posted on Wed, 08 Apr 2020 20:10:11 -0700 by adnan1983
Check box and radio box are two controls that are often used in Web sites. How to use Selenium to operate these two controls in web automation testing? Today, let's have a brief introduction practice!
The html test page code is as follows:
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> ...
Posted on Sat, 04 Apr 2020 15:15:11 -0700 by coolex
In the previous article, only one page of data can be downloaded. The data on pages 2, 3, 4.... 100 cannot be obtained. Based on the previous article, modify it and use selenium to get the value of the href attribute of all pages.
Using selenium to simulate a browser is a bit cumbersome. For example, 300 pages are important 300 ...
Posted on Sat, 04 Apr 2020 11:50:00 -0700 by raffael3d
Squirrels love biscuits 2020-04-01 13:40
The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
Author: Data Senlin
PS: if you need Python ...
Posted on Wed, 01 Apr 2020 16:20:00 -0700 by linuxdream
1, Graphic verification code identification1. Use tesserocr
from PIL import Image
# Store a picture of verification code locally for testingimage = Image.open('test.jpg')result = tesserocr.image_to_text(image)print(result)
# Convert text directly to stringimport tesserocrprint(tesser ...
Posted on Fri, 20 Mar 2020 11:00:25 -0700 by madspoihur