Tuesday, 9 May 2017

Selenium WebDriver Without Maven

Selenium WebDriver is a software testing tool as I described it in my previous posts. It provides customize way to do software testing.

There are mainly two ways to start with Selenium

1)  Without Maven
2)  With Maven (Professionals way)

We will discuss 'Maven' in next post

Prerequisite before start with selenium

1) Eclipse IDE link to download Eclipse

2) Install Java JDK How to setup java

3) Download Selenium Webdriver (Described below)

Without Maven

1) Create java project
    New  --> other --> Java Project


2) Give your project a name. I've' named it "seleniumdemo" and className "SeleniumWithoutMaven"
     src --> New --> Class

3) Your project structure should look like below image


4) Dowload selenium server from Link

   seleniumhq.png


5) Download chrome driver Link

chromedrive.png


6) Now configure Build Path
Project→ Build Path → Configure Build Path

configurebuildpath.png


7) Add External Jar “Selenium Server” through configure Build Path

configurebuildpathwindow.png


8) After adding verify jar presence

verify jar presence.png


9) Add below mention code(Imp Mention chrome Driver Path)
System.setProperty("webdriver.chrome.driver", "Chrome_driver_Path");
WebDriver driver = new ChromeDriver();
driver.get("http://www.seleniumhq.org");
System.out.println("Chrome Browser Launch Selenium Site");


seleniumcode.png


10) Run (Ctrl+F11) / “Run as Java Application”

runasjavaaaplication.png


Next Post on Selenium WebDriver With Maven (Professionals way) 

Leave comments if you still face challenges
 

4 Comments:

At 20 May 2019 at 21:47 , Blogger sheela rajesh said...

Thanks for sharing,this blog makes me to learn new thinks.
interesting to read and understand.keep updating it.
Selenium Training in Chennai
selenium training in anna nagar
JAVA Training in Chennai
Python Training in Chennai
Big data training in chennai
Android Training in Chennai
Selenium Training in Annanagar

 
At 11 June 2019 at 22:07 , Blogger Jackie Co Kad said...

Great Article
Java Project Ideas for Final Year Students
FInal Year Project Centers in Chennai


JavaScript Training in Chennai
Java Training in Chennai

 
At 15 October 2020 at 00:23 , Blogger divya said...

Great blog on software testing. Hope to read more blogs from you.
software testing course in chennai

 
At 13 December 2020 at 01:28 , Blogger High Technologies Solutions said...

High Technologies Solutions offers selenium training with choice of multiple training locations across Delhi. Further More Details Here-+91-9311002620 Or Visit Website- https://www.htsindia.com/Courses/Software-Testing/selenium-training-course-institute

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home