开发者

installing selenium-java-2.5.0 in eclipse

开发者 https://www.devze.com 2023-04-01 12:01 出处:网络
I have downloaded \"selenium-java-2.5.0\" and added it to the build path of my project in eclipse, but when I try to utilize开发者_运维百科 one of the new API\'s I get a syntax error.

I have downloaded "selenium-java-2.5.0" and added it to the build path of my project in eclipse, but when I try to utilize开发者_运维百科 one of the new API's I get a syntax error.

Is there a tutorial for installing the selenium-java-2.5.0 in eclipse?


The issue was that old jars were still conflicting with eclipse, removed old jars re-added fresh ones


You will need all the .jar files in selenium ZIP. Copy selenium-java-2.xx.jar and all the jars from libs folder (in selenium ZIP) to your project.

If you really need a tutorial about this, look here: Selenium Java Tutorial


I would suggest create a pom.xml file and add the maven dependencies to the file and refresh the project. Then the required dependencies and jar are automatically installed. you can also add jar according to your requirement by going to the link.

https://mvnrepository.com/

because adding jar separately might lead to any flows.


If you want setup Selenium Environment,

1) Download and Install Java Software (JDK) - create and execute programs / Test scripts

2) Set Environment Variable path (Path Variable) - To use Java from any directory

3) Download Eclipse IDE and Extract - To write and execute Java Programs

4) Download Selenium WebDriver Java Language binding (from www.seleniumhq.org) and Add Webdriver jar files to Java Project in Eclipse IdE

5) Download Browser driver/s and (* set browser driver path in Test cases...)

0

精彩评论

暂无评论...
验证码 换一张
取 消