Sulenium installation steps

python Language,selenium Automation environment construction

1. Installationselenium, choose one of the two ways to install

1.1 UseDOS Command to enterpython installation directory, span>and then executepip install -U selenium Network installation

Selenium

share picture

2.1 download the installation package first https://pypi.python.org/pypi/selenium#downloads,After downloading, unzip the directory,

then use cmd < span style="font-family: 宋体;">Enter the unzipped directory and use the commandPython setup.py install InstallSelenium

2. Create a new project and install it through the installation package management interface of pycharm

share picture

3. CheckFirefoxGoogle Chrome The driver version corresponding to the browser version,

The latest version for Google and Firefox IE The version remains unchanged span>

share picture

4. Download the corresponding driver and put it in python Installation directoryC:\Python36 or the browser corresponding installation Directory

Browser Drive Google(chromedriver.exe) Firefox(geckodriver.exe) IE(IEDriverServer.exe)

share picture

5 create a new one Empty project script and enter the corresponding code

share picture

6. Enter the specified page to complete

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2231 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.