The previous section based on Python Selenium automated Testing (i)--element positioning describes the element positioning method, now we can write a simple automated test script applet to practice.
from Seleniumimport webdriver
Driver=webdriver. Chrome ()Driver.get ("http://www.baidu.com")driver.find_element_by_id ("kw"). Send_keys ("Selenium2")driver.find_element_by_id ("su"). Click ()Driver.quit ()
Here's a brief explanation of the previous code.
Selenium (1): selenium installation in Python, seleniumpythonAbout selenium
Selenium is also a tool for Web application testing. The Selenium test runs directly in the browser, just as the real user is operating. Supported browsers include IE, Mozilla Firefox, and Mozilla Su
This article mainly introduces the working principle of selenium server.Interaction ModeStart.
In the first selenium RC test case, we started selenium server with the command "Java-jar selenium-server.jar". In fact, when we started selenium server, you can also add parameter
% |████████ | 245kB 576kB/s eta 0:00:02 27% |█████████ | 256kB 570kB/s eta 0:00:02 28% |██████████ | 266kB 536kB/s eta 0:00:0 29% |███████████ | 276kB 530kB/s eta 0:00:0 30% |████████████ | 286kB 586kB/s eta 0:00:0……
Download the browser driver
After selenium is upgraded to 3.0, different browser drivers are standardized. If
1. What is selenium?
Selenium is a powerful open-source Web function testing tool series of throughtworks. This series now mainly includes the following four:
1. Selenium core: supports DHTML test cases (similar to data-driven tests). It is the engine of selenium IDE and selenium
Original url:https://www.guru99.com/introduction-to-selenium-grid.htmlWhat is Selenium Grid?Selenium Grid is a part of the Selenium Suite this specializes in running multiple tests across different browsers, Operat ing systems, and machines in parallel.The Selenium grid has
1. Installing the JDKJDK1.7Download path: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.htmlPunch ' Next ', OK. Configure environment variables when installation is complete:Java_home = E:\Java\Java\jdk1.7.0_15PATH =%java_home%\binCLASSPATH =.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jarCMD command-line input:java-version, returns the following result, indicating that the installation was successful2. Download Eclipse:http://www.eclipse.org/download/Once the
2 has a clear object-oriented API from Webdriver and is able to interact with the browser in the best way possible. Selenium 2 does not use JavaScript sandboxing and supports multiple browsers and multi-language bindings. Specifically, the following are:
Mozilla Firefox
Google Chrome
Microsoft Internet Explorer
Opera
Apple IPhone
Android Browsers
Selenium 2 supports langua
Selenium is the most extensive web UI Automation testing framework currently in use. This series of articles will go into the brief to explain the usage of selenium.
Reading Table of Contents
The name of the selenium
Selenium means selenium (a bit QTP the killer's meaning
Selenium RC is to use programming languages to write scripts and use the selenium RC Server as a proxy server to access applications for testing. because selenium RC no longer needs to attach Firefox, it can be tested in more browsers, this is also an important issue for us to perform Web Testing (solving the important issue of testing due to browser compatibilit
6 common python errors and solutions for beginners and 6 python reports for beginners
This article lists some common errors for new users to write code. Some errors are careless. However, for new users, it takes a long time to solve them. So I will summarize some of the problems I encountered here. I hope to help my new friends.
1. The NameError variable name is incorrect.
Error:
>>> print aTraceback (most
Python + Selenium notes (11): Configure selenium Grid and pythonselenium
(1)Preface
Selenium GridTests can be distributed on several physical or virtual machines to perform tests in a distributed or parallel manner.
This link is an official description.
Https://github.com/SeleniumHQ/selenium/wiki/Grid2
(2)
Selenium RC is the use of programming language script, through the Selenium RC server as a proxy server to access the application to achieve the purpose of the test. Since Selenium RC no longer needs to be dependent on Firefox, it can be tested on a number of other browsers, And that's one of the more important things we do with web testing (solving problems that
The Selenium IDE is a plugin in the Firefox browser that records your actions on Firefox and replays its operations. It's easy to use, but I don't think it's very useful.
Reading Table of Contents
Selenium IDE Introduction
The role of the Selenium IDE
Selenium IDE Online Installation method one
Original URL: https://www.guru99.com/selenium-python.htmlHow to use Selenium with Python:complete TutorialSelenium supports Python and thus can be utilized with Selenium for testing.
Python is easy compared-to-other programming languages, has far less verbose.
The Python APIs empower you-to-connect with the browser through
Original URL: https://www.guru99.com/intellij-selenium-webdriver.htmlHow to use IntelliJ idea Selenium WebdriverIntellij is a IDE that helps your to write better and faster code. Intellij can used in the option to Java Bean and Eclipse.In this tutorial, you'll learn-
What is IntelliJ
Pre-requisites to IntelliJ with selenium webdriver
How to Down
This article summarizes the first screenshot in the first four screenshots of selenium and gives some notes on how to use it:
This article focuses on installing the selenium IDE:
Reference
Step: First install the Firefox browser (I started from firefox2.0). You can install a Firefox version for the Selenium IDE plugin. Seleni
Original URL: https://www.guru99.com/use-autoit-selenium.htmlHow to use AutoIT with SeleniumSelenium is a open source tool that's designed to automate web-based applications on different browsers and to handle WI Ndow GUI and non HTML popups in application. AutoIT is required as these window based activity was not handled by Selenium.AutoIt V3 is also freeware. It uses a combination of mouse movement, keystrokes and window control manipulation to automate a task which was not possib Le by
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.