Foreplay When we are doing automation, we sometimes use some mouse operations, such as double-clicking, mouse hovering and other operations. Selenium provides the ActionChains method for us to oper
Tag: Selenium
Selenium – scroll page to element
Scroll page In automated operations, if the web page Too long, and the element we need is not in the current visible page, then selenium cannot operate it; at this time, we need to scroll the pag
Selenium automation processing of calendar or date control for non-input boxes
4, at this time we can remove the readonly attribute, the problem is easily solved, the code is as follows:
String js = “document.getElementById(‘createTime’).removeAttribute(‘readonly’)”; //
Selenium —- three waiting
In UI automation testing, you will often encounter a bad network environment, resulting in elements that cannot be found. If an error is reported, the wait in selenium will be used at this time. Th
Selenium-51Job Automation Test (CSS Selector Select Element)
Log in to 51job,
http://www.51job.com
Enter the search keyword “python”, select the region “Hangzhou” (note that if the location has already selected other regions , To be removed),
Search
Selenium – keyboard operation
Foreplay The last article talked about mouse events in selenium. In automation, keyboard events are also very important. For example, we need to press enter, ctrl+c to copy, etc. Such operations ar
Crawn Selenium
Open the crawler on the front end of the browser from selenium import webdriver
from time import sleep
bro = webdriver.Chrome(executable_path=r’D:\Crawler Storage\chromedriver.exe’)
bro.get(u
Day – 85 Reptile (Part 2: Selenium)
crawler 03 selenium module summary One: installation and use of selenium module< /span>
01: Introduction to selenium
What is selenium? Selenium is a third-party library of Python. The interf