In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you how to use Selenium2Library simply, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.
Here we mainly talk about how to use the RF framework to do UI automation testing? I made a small Demo in the following video, which I will implement step by step.
First install the selenium 2Library library
Installation is very simple, go to your python Lib/site-packages directory: type pip install robotframework-selenium2library, see the following picture means that your Selenium2Library library has been installed successfully.
Download chromedriver from chrome browser
Please download the corresponding chromedriver version according to your browser version: https://chromedriver.storage.googleapis.com/index.html
Chrome version supported by chromedriver-68v2.39v66-68v2.38v65-67v2.37v64-66v2.36v63-65v2.35v62-64v2.34v61-63v2.33v60-62v2.32v59-61v2.31v58-60v2.30v58-60v2.29v56-58v2.28v55-57v2.27v54-56v2.26v53-55
Load the Selenium2Library library in the RF framework
First, create a new Project in the RF framework, as shown below:
1.1Name: project naming
1.2Parent Directory: the directory in which the project was created
1.3Created Path: the full path of the project currently created
1.4Type: type
1.5Format: file format
Load the Selenium2Library library in the currently established Project, as shown in the following figure:
Create a New Test Case, as shown in the following figure:
Write a test case, as shown in the following figure:
Open Browser: open a browser
Maximize Browser Window
Input Text
Xpath location: priority ID
Input Password
Click Button
Sleep
Close Browser
Run the script and view the results
Running result
Report
Log
On how to use the simple use of Selenium2Library to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.