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
SeleniumThe Ultimate Automated test Environment Setup (II.)Selenium+eclipse+pythonThe previous example of the selenium+eclipse+junit+testng Automated test environment, on the basis of the previous article, the following example Selenium+
The first thing to do is:
1, ECLIPSE+JDK
2, Selenium-ide (http://release.seleniumhq.org/)
3. Firefox
4, Selenium-java-2.53.1.jar (as if not necessary)
5, Selenium-server-standalone-2.53.1.jar
Selenium-ide using methods, selenium c
--> Eclipse Marketplace ..., in the popup window, there will be a search box, enter Pydev in it, this is mainly used to search Pydev, after the search, click Install. After install, restart Eclipse, then in the Eclipse menu, select Windows-->preferenc-->pydev--->interpreters--->python Interpreter, such as:After configuration is complete 5 Downloads SeleniumOffic
1. First configure the eclipse + pydev EnvironmentA) install JDKB) install eclipseC) install python2.7 and install pydev.2. Go to the official website (http://seleniumhq.org/download/) to download the selenium Python FileClick Download of python to go To the download page of selenium python, https://pypi.python.org/pypi/selen
The Python environment builds Eclipse 4.5, Java 8, PyDev 5.2.0, Python3.7, selenium-3.14.01 installation Python: http://www.python.org/Python has 32 versions of Python 2 and Python. There are some differences in grammar.I install Python 3.7.0To configure environment variables after installation2 installation JAVA JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlEclipse requires this to
above version (prompt "Stop responding" after startup), does not support IE11 or above, Chrome does not support more than 12.X version, other browsers have not been measured.Second, launch the browser#使用一下语句导入selenium的webdriver模块From selenium import WebdriverThe following is the example of Firefox#设置配置文件路径Profile = Webdriver. Firefoxprofile (r "C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\Profile
Download and install python, download "Python-2.7.9.msi" can be installed directly after
Download install setuptools, download setuptools-11.3.1, use the command prompt to go to the location of setup.py in the installation package, execute setup.py install, perform the installation
Download the install PIP tool, download pip-6.0.6, use the command prompt to go to the location of setup.py in the installation package, execute setup.py install, perform the installation
Download install
1. Java.lang.NoClassDefFoundError:Workaround:Import all the jar packages in Selenium-java-2.44.0\selenium-2.44.0\libs in the Java project of Eclipse.2. Under the Win7 IE8Selenium script through selenium = new Defaultselenium ("localhost", 4444, "*iexplore", "http://10.88.15.51:8080/"), the way the browser is setStart
Continue connection
Open Eclipse new Java project as shown in:
Enter the project name and click the "Finish" button as shown:Create a new Java project in Eclipse, as shown in:
Add the class library as shown in:
Select the JUnit library in the pop-up window, as shown in:Click on the "Next" button and select the JUnit version to add as shown in:
In the same way to add the
Selenium+eclipse+junit+testng+python Step three download Selenium IDE,seleniumrc,iedriverserver, seleniumclient Drivers Selenium official website :http://www.seleniumhq.org/download/1 . Selenium IDE:selenium-ide-2.2.0.xpi is used to record scripts on Firefox. 2,
Class_path in the user variables, So it's been in CMD. Javac always prompt is not an internal command or an external command ... ) 1) NewVariable name: java_homeVariable Value: C:\Program files\java\jdk1.8.0_101\Variable name: Class_pathVariable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;2) Locate the PATH variable name---> Edit add:Variable name: PATHVariable value:%java_home%\bin;%java_home%\jre\bin;3) After configuring the environment variables, you can verify that Java is suc
The following describes the Eclipse+selenium
There's not much to say about Eclipse before the essay.
Selenium
Download Selenium jar package, official website: http://seleniumhq.org/, Selenium-server-standalone-2.
1. I believe many students just contact selenium, in eclipse open Firefox browser is reported error: Org.openqa.selenium.firefox.NotConnectedException:Unable to Connect to host 127.0.0.1 in Port 7055 after 45000 Ms. Firefox Console output: ...(Exception code too many omitted here) on the Internet to find a lot of ways are not solve the problem, the result is burn! 2. This is actually Selenium's jar package
IEDriverServer.exe. Put the browser driver directly in the Python installation directory.Four, Eclipse+pydev plug-in installation1. Install Eclipse(1) Eclipse does not need to install, unzip folder, click Eclipse.exe to use2. Install Pydev plug-in(1) Decompression Pydev can see features and plugins two directories, and then copy the contents of the two directori
1. Install python3.4 and SET environment variables2. Replace the lib file (or switch to the C:\Python34\Script directory to execute the PIP install-u Selenium command)3. Install the JDK and configure the environment variables (refer to http://jingyan.baidu.com/article/bea41d435bc695b4c41be648.html)4. Eclipse Install Pydev plugin (reference http://www.cnblogs.com/linzhenjie/articles/2639113.html)5. Install t
First, download the necessary documents1. EclipseEclipse official website2. JDKJDK website3. Selenium IDE, selenium Server, selenium Client Drivers (Java), etc.Selenium Note: A proxy server is required to download I'm using a missus cat.4. MAVEN installation, configuration, etc.Second, installation1, Eclipse decompress
1. Start by writing code, install Eclipse, website download software, https://www.eclipse.org/downloads/, remember first install Java, the proposal installs JDK1.7 above.
2. The next need to write selenium's code,testng code, from selenium, Selenium-server-standalone-2.41.0.jar,testng,testng-6.8.jar website Download the corresponding jar file, put into Eclipse's
1. Install PythonReference Installation python:http://www.cnblogs.com/beyongblue/p/4215740.html2. Install the Python management tool Setuptools3. Install Python package management tool PIPInstalling PIP with SetuptoolsOpen a Command window, enter the C:\Python27\Scripts directory, enter the command: Easy_install PIPWait for the completion.4. Install Python-based selenium packageOpen a Command window, enter the C:\Python27\Scripts directory, install th
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.