record scripts and export scripts
1) Recording script:A) Click the Selenium IDE in the Firefox toolbar and click the Red button on the right to start the recording script. (By default, the script starts recording after you open the Selenium IDE, so you don't usually have to click the red button at the beginning)b
Recently learning selenium, self-study is more difficult, but also very grateful to the network environment, you greatly help the blog.Also want to be able to record a small white learning to use selenium test process, but also hope to be helpful to others.There are a lot of materials about environment deployment and getting started selenium, and I'll just record
file you want to upload1//td/input[@type = ' file ']You can also use cssselector, more knowledge about XPath and Cssselector, and will do some topics later1 td>input[type= ' file ']How do you verify that the xptah/cssselector you wrote is correct?There are several ways to do this:
F12, using the browser's console, XPath uses $x () Function,css to use the $ () function
Using third-party plug-ins Firebug
Using the Selenium
Official website: http://www.openqa.org/selenium/1, commonly used several kinds of selenium
The Selenium IDE is a primary tool for recording or scripting with an execution interface. It is a Firefox plugin, so it can only be used on Firefox.
SELENIUM1 (SELENIUM-RC)
element, then use SendKeys, SendKeys send the absolute path of the file you want to upload1//td/input[@type = ' file ']You can also use cssselector, more knowledge about XPath and Cssselector, and will do some topics later1 td>input[type= ' file ']How do you verify that the xptah/cssselector you wrote is correct?There are several ways to do this:
F12, using the browser's console, XPath uses $x () Function,css to use the $ () function
Using third-party plug-ins Firebug
Using the
Tracing traceability, webdriver and Selenium are two independent projects, and the implementation mechanism is different. Why would the Selenium team merge the two in Selenium 2? What advantage does Webdriver have over Selenium? How do we choose to use Selenium or Webdriver?
1, If the network environment is good, directly using the Firefox browser to access the https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/installation can2. Copy the Extensions folder in the same sibling directory to the file corresponding locationDriver = new Firefoxdriver ();//profile.setpreference ("browser.link.open_newwindow.restriction", 1);Profile.setpreference ("browser.link.open_newwindow
Required Software
Before installing the IDE, make sure that Java SE Development Kit (JDK) 5 update 14 (version 1.5.0 _ 14) or later (including JDK 6 Update 4) is installed in the system ). If JDK 5 update 14 or later is not installed, you cannot continue to perform this installation. For more information about the required JDK version, see the required software section in the release notes of netbeans ide 6
command to install the Python library, Pip. If you use Python3, the command can use PIP3 sudo pip install robotframwork #安装脚本引擎核心库 sudo pip install robotframework-ride #安装测脚本的IDE软件 sudo Pip Install robotframework-selenium2library #安装selenium2library库sudo pip install selenium==2.53.6 # Special Note: install the specified version of the Selenium libra
Recent research on new automated testing methods, QTP has been used more skilled, to develop a new method, here to do a record and encourage everyone.1, the first must be the configuration environment, step by step, first download the necessary tools:Download a Python environment, I use the Python3.4 here, I will upload it, you can download directly. It is best to use 3.4 and above, so you can install the selenium directly without the PIP alone.After
//Get the first Sheet table Sheet readsheet = readwb.getsheet (0); Gets the total number of columns contained in the sheet table int rscolumns = Readsheet.getcolumns (); Gets the total number of rows contained in the sheet table int rsrows = Readsheet.getrows (); Gets the object reference for the specified cell for (int i = 0; I Third, experienceThrough this experiment we learned how to use the Selenium
"Selenium.common.exceptions.WebDriverException:Message: Unsupported Marionette Protocol version 2, required 3;6. Continue to check the reason, said the Firefox version is too low, need to upgrade to the latest version, OK, update Firefox, problem solving.In fact, according to the author's share, will soon be able to solve the problem, but I follow the author's normal operation down, still reported the first mistake, a variety of attempts have not been done, and then on the Internet to search fo
http://blog.csdn.net/five3/article/details/9428655Selenium-grid How to workTags: selenium-grid2webdriverselenium22013-07-23 21:55 10815 People read Comments (2) favorite reports Classification:Selenium (+)Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Selenium-grid versionSelenium-grid is divided into version 1 and version 2, in fact its 2 versions are not the same as the
Selenium-grid versionSelenium-grid is divided into version 1 and version 2, in fact its 2 versions are not the same as the Selenium version 1 and 2 should be published [that is, the release of Selenium-grid2 is a little later than selenium2]. Fortunately, however, the current SELENIUM-GRID2 is basically capable of supp
Today's experiment is to use selenium for web testing. First, you need to install the relevant plugin selenium in Firefox. Once installed, a flag will appear in the top right corner of Firefox:. The presence of this sign means that the installation is ready.Next click on this button, you will see the Selenium IDE inter
This article explores all the purposes of the integrated development environment (IDE) and compares the costs and advantages of seven popular IDEs. Writing a series of articles on php gives me a deeper understanding of the world of PHP developers. I have talked with many PHP programmers. The most surprising thing is that only a few people use IDE. Most programmers use text editors, such as Notepad, Emacs, o
Sikuli installation, to the official website download Sikuli-setup.jar, address: http://www.sikuli.org/download.html
In the Java environment on the machine directly double-click the jar file (my Windows environment), to install, installation prompts to install;
When the installation is complete, a Sikuli-java.jar file is generated. This is for use in Eclipse, described later;
1. Run Sikuli IDE, enter the Setup.jar directory, will generate a Runide.
latest update path:Http://idea.lanyus.comSecond, install the request module, and Webdriver
See Python's installation path below F:\Python\Scripts There is no Pip.exe
Note: PIP is the installation management tool, if the PIP version is too low, you can use the command above to upgrade the PIP, if there is no pip you need to install PIP, or directly with the external download package installation.You can use:f:\python\scripts>easy_install.exe pip (update pip)
Install
Link: http://www-128.ibm.com/developerworks/cn/java/wa-selenium-ajax/
Christian Hellsten, IT expert, IBM
January 04, 2006
The acceptance test (also called a functional test) is used to test the functions of manual tasks, but these tasks are manually tested.It may take a long time, and human errors may easily occur. In this article, the author shows architects, developers, and testers how to use SeleniumTest Tools for automated acceptance t
In the face of the growing popularity of single IDE motherboards, upgrading users with three or more IDE devices in their hands is sure to consider this solution. Do not wait until the upgrade of all the accessories to buy back, to consider this issue, that time is actually a bit late, the choice of solutions have been much less. Therefore, the upgrade plan related to the
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.