Configure Selenium WebDriver in Eclipse to Launch Chrome | Java Project | Beginners|Java DOC

Опубликовано: 26 Сентябрь 2020
на канале: total-qa
194
5

Pre-Requisites:
===========
JAVA
Eclipse

Configuration of Selenium Web Driver in Eclipse:
============================================
Open Eclipse
Create a Java Project
Downnload the Latest Selenium jar file from this link https://www.selenium.dev/downloads/.
Add the Selenium jar file to the build path of the project.

Executing the Tests in ChromeBrowser:
=========================
Check the version of Chrome Browser
Download the Executable file compatible to Chrome Browser
https://chromedriver.chromium.org/dow...

TC_001:Verifying the title of page
======================
1. Open Chrome Browser.
2. Enter the URL https://www.google.com
3. Check the title

Expected Result:
---------------------------------
"Google"

Actual Result:
-------------------------------
"Google is displayed"

Result:
------------------------------
Pass

Java Logic:
=============
System.setProperty("webdriver.chrome.driver", "executable path");

ChromeDriver is a class implementing an WebDriver interface.

WebDriver driver = new ChromeDriver(); //Open Chrome

PlayList Details:
SOAPUI:
   • SOAPUI  
SELENIUM INTERVIEW QUESTIONS:
   • Selenium Interview Questions  
PAGE OBJECT MODEL PRINCIPLES:
   • PageObjectModel  
JENKINS:
   • JENKINS  
REST API TUTORIAL:
   • REST API TUTORIAL  
JAVA:
   • Java  
SELENIUM WEBDRIVER:
   • Selenium WebDriver  
XPATH TUTORIAL:
   • Xpath Tutorial  
Css Selector:
   • Css Tutorial  
GITHUB:
   • GITHUB