parameterization, followed by data-driven, use case after writing, only need to maintain the test data can beStage four: University18. Encapsulation: The usual method is already very skilled, this time needs to encapsulate the19.jenkins: When the use case is written almost, the final thing is to want to be able to execute a key, this time, need to use Jenkins to do continuous integration20. Code Warehouse: When many people do automation projects, thi
Selenium is the most popular open source web application testing tool. I mainly studied selenium RC, using Java, development tools eclipse, and JUnit.
Development Environment preparation:
1. Install JRE or JDK;
2. Install eclipse;
3. Download The JUnit package;
4. Install Firefox and plug-ins selenium IDE, firebug, and XPath checker;
5. Download
basic not the latest chromedriver and the corresponding table of chrome, then the rise and tidy up a copy of the following, I hope to be useful to you:
Chromedriver and Chrome version comparison table
Chromedriver version
supported versions of Chrome
v2.25
V53-55
v2.24
v52-54
v2.23
v51-53
v2.22
v49-52
v2.21
V46-50
v2.20
v43-48
v2.19
Because the company's project needs to be imported into selenium to test the flex program, I've been studying for a while, because in the course of the study, I found that selenium used less data on flex, and certainly learned something about it here. So after the study, I learned to take to discuss with you.
The following is based on a certain understanding of selenium.OK, here we go.1) Of course download
Explanation of the waiting method of Python selenium, pythonselenium
I found that too many people will not wait. Today, I can't help but tell you the necessity of waiting.
Many people ask in the group that the drop-down box cannot be located, the pop-up box cannot be located... In most cases, there are two problems: frame and wait. I don't know what kind of speed your code is running, but what kind of speed
Not only so the bottom of the read more does href not tell us to load the rest of the page information, the only way is不断点击阅读更多这个按钮
Load_more.png
What, will the pulley repeat three times to slide down the center of the page and constantly click the button this operation http request can not be done, this is more like JS operation? Yes, Jane's article is not a regular HTTP request, we can not constantly redirect according to different URLs, but some of the page's actions to load page
China-Selenium ERA model development system, selenium era platform model development to find (Ying Hua: 138-0284-9410) Micro-QQ3182291817, selenium era APP development system, selenium era system developer City. China-Selenium Age system model: Sharing bonusesThe investment
take a look at the charm of the first selenium webdriver test.Java code
Import Org.openqa.selenium.By;
Import Org.openqa.selenium.WebDriver;
Import org.openqa.selenium.WebElement;
Import Org.openqa.selenium.firefox.FirefoxDriver;
Public class Firstexampe {
public static void Main (string[] args) {
Webdriver Driver = new Firefoxdriver ();
Driver.get ("http://www.google
Automation test basics-Selenium browser operations, basics-seleniumSelenium mainly provides methods for operating various elements on the page, but it also provides methods for operating the browser itself, such as the browser size, browser back-up, forward button, and so on. I. Control the browser window size. Sometimes we want to open it in a browser size so that the accessed page can run in this size. For example, you can set the browser size to th
the DOS command window, enter C:\Python27\Scripts, enter the success, input Pip Install-u Selenium,lz again, must be networked oh, do not let selenium download unsuccessful Oh. In the networked state, the input pip install-u Selenium will automatically download selenium.Come here to our selenium+python environment is
successfully let Selenium test run in the built-in Java browser, and external Safari, Chrome Browser, Firefox plug-in is not installed successfully.
Let the facts speak, still let one of the simplest examples speak for themselves, create a SBT project, try to simplify the directory, only BUILD.SBT files and Test/integrationtest.scala test code, the content is
Build.sbt
Librarydependencies ++= Seq ("Org.
1. Download necessary tools and jar packages
1. Download and install Firefox
(1) download selenium ide
Http://release.seleniumhq.org/selenium-ide/1.9.0/selenium-ide-1.9.0.xpi
(2) download test suite batch Converter
Https://addons.mozilla.org/en-US/firefox/addon/test-suite-batch-converter-sel/
(3) install the Firefox plug-in
Drag the attachment to be installed to
Selenium/webdriver can be installed by Selenium-webdriver.gem package in Ruby Environment
Gem installselenium-webdriver
supports languages and versions with Ruby 1.8.7~1.9.2,jrbuy and rubinius
Selenium-webdriver contains selenium-client, while reading, be aware that their two namespaces are in two diff
Get valueCommon values can be obtained through the Webelement interface, which is equally important.
Size gets the dimensions of the element
Text gets the literal of the element
Get_attribute (name) Gets the property value
Location gets the element coordinates, first finds the element to get, and then calls the method
Page_source back to page source code
Driver.title return page title
Current_url gets the URL of the c
What is Selenium
Selenium is a well-known Web application testing tool that can perform tests by simulating the actions of users in a browser, and its API supports java,c#,python,ruby,php,perl,javascript these mainstream programming and scripting languages. Selenium also supports mainstream browsers such as IE, Firefox, and Chrome.
PowerShell How to call
box input beyond (I prefer the band), complete the automation of the Web page.The program source code is as follows:#-*-Coding:utf-8-*-This is mostly set encoding "' Created on 2014-08-09@author:administrator '" #!/usr/bin/pythonfrom Selenium Import webdriverfrom selenium.common.exceptions import timeoutexceptionfrom selenium.webdriver.support.ui Import webdriverwait Import time# instantiates a driver cla
problem, also more convenient debugging python, so do not want to start tossing in insignificant time, strongly recommend Pycharm;2.sumline Text 3 can also be used, a bit is open to write code faster, but need to install Python plugin to compile and run, and often encounter inexplicable problems;Five, the environment after the success of the simple operation of the first program, testSix, the success of the operation, you are done, start your perform
Selenium is a good automated testing framework for multiple platforms and browsers. Selenium provides two operating modes-core and remote control (RC). In addition, thoughtworks also provides Firefox's add-on -- selenium IDE and RC mode extension selenium grid for selenium.
Selenium user extensions and plugins(Reproduced: http://luyongxin88.blog.163.com/blog/static/9255807201181114747437/)User extensions is to provide users with a way to write their own commands. The commands you write will be the same as the commands in the selenium itself, can be used in the IDE, and after the first few letters, the IDE can also give the command prompt. User extensions is stored in a separat
Selenium is a very good web testing tool, flexible, simple, with the increase of the content of the site, the original manual testing more complex, and often have forgotten places,Automated testing is also important to record the learning process of selenium webdriverNote: I do Java, I only learn Java and Selenium Webdriver method of cooperation.First article
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.