Introduction With the rapid development of the Internet, software testing has become more and more important. Automated testing is one of the important means to ensure software quality and improve development efficiency. The Python Selenium automated testing framework is a popular automated testing framework that can simulate user behavior to operate on web pages and […]
Tag: selenium
Sample code for selenium+unittest to implement web automation!
This article mainly introduces the sample code of selenium + unittest to realize web automation. The sample code is introduced in great detail and has certain reference learning value for everyone’s study or work. Friends who need it can follow the editor to learn together. The purpose of learning unittest earlier is to use it […]
How to use Selenium to handle cookies, I learned it thoroughly today!
01. Cookie introduction HTTP protocol is a stateless protocol. Once the data exchange is completed, the connection between the client and the server is closed, and a new connection needs to be established to exchange data again, which means that the server cannot track the session from the connection. That is to say, even after […]
python selenium clicks a series of buttons in the table and outputs the pop-up content to csv
A practical example of python selenium, heavier than the demo, but not too complicated. The trick is summarized as follows: The address of the latest chromedriver is https://googlechromelabs.github.io/chrome-for-testing. This is very important, otherwise you will have to deal with annoying problems such as automatic chrome updates. Many download sources are a bit outdated. Use options […]
Python selenium automated testing framework in action – login test case
This article is mainly to help colleagues who can write basic selenium test code but have no plan. This article applies POM model, selenium, unittest framework, configparser configuration file, smtplib email sending, HTMLTestRunner test report module combined with login case to implement a simple automated testing framework The project mainly includes the following parts conif.ini […]
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 to […]
Web automation testing framework Selenium
What is automated testing Automated testing is testing done automatically by machines assuming some preset values. Web automated testing applies automated testing technology to web testing. It assumes some preset values and uses the program to drive the browser to complete the testing of web programs, as shown below: Selenium There are many technical means […]
Using Selenium automation framework in python
selenium is a tool for web application testing. Selenium tests run directly in the browser, just like real users. By writing Selenium scripts that imitate user operations, you can drive the browser to perform specific actions from the end user’s perspective. This feature is very friendly for us to crawl pages dynamically rendered by JavaScript. […]
Python selenium automated testing framework in action – login test case
This article is mainly to help colleagues who can write basic selenium test code but have no plan. This article applies POM model, selenium, unittest framework, configparser configuration file, smtplib email sending, HTMLTestRunner test report module combined with login case to implement a simple automated testing framework The project mainly includes the following parts conif.ini […]
Python Selenium: A powerful tool for web automation
Selenium is an automated testing tool mainly used to simulate user interactions in web applications. Although it was originally designed for automated testing, it is also widely used for web scraping, web automation, and web testing. 1. Install and set up Selenium First, you need to install the Selenium library. Use pip to install Selenium: […]