简体   繁体   中英

How to use WebDriver with Java in eclipse

I am using Selenium RC, TestNG, Java with Eclipse. I want to use WebDriver.

How can I use it? Which jar file will be added in eclipse as external jar file?

Download the selenium-java zip and add all the Jars in the lib dir to your classpath. This will contain the WebDriver API and all the available browser Drivers such as Firefox, HTMLUnit, Chrome, etc.

Please look at my step by step guide at http://scraping.pro/how-to-use-selenium-webdriver-with-java/ . It explains how to build a java program that uses WebDriver using Eclipse IDE.

With WebDriver + Java + TestNG + Maven + ReportNG + Sikuli you can make an automation framework which is user friendly, robust, maintainable and scalable. Tools, strategies and patterns that I used are explained in detail at http://xebee.xebia.in/2012/03/30/web-gui-automation-tools-strategies-patterns/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM