Basic Selenium Test Script To Invoke Web Browsers | Invoke chrome browser in selenium

Опубликовано: 04 Декабрь 2018
на канале: Teach Yourself Test Automation
369
4

Basic Selenium Test Script To Invoke Web Browsers | Invoke chrome browser in selenium http://teachyourselftestautomation.com

Welcome o teach yourself test automation using selenium webdriver with Java

Day 05 - Basic Selenium Test Script To Invoke Web Browsers

There are two common steps to all selenium test cases you will automate
1. Set system property for chrome ''webdriver.chrome.driver'' to point to the path of chrome .exe file
2. Create driver as an object for chromedriver class

You will find all the classes for all the major web browsers can be found in the 'javadoc' via the seleniumhq website; https://www.seleniumhq.org/

Access javadoc from above website click on webdriver left hand bottom window and you will find chrome class is ChromeDriver

Create object for chrome browser class = ChromeDriver

Syntax is equal to classname object = new classname();
That should read ChromeDriver object = new ChromeDriver

Using wendriver as your interface to provide all library of methods to automate test cases in selenium yo will want to connect webdriver to your object (driver) so final syntax for setting driver as an object is WebDriver driver = new ChromeDriver

Next is chrome set property and point to path hoding 'exe file
System.setProperty("webdriver.chrome.driver","path")

Basic Selenium Test Script To Invoke Web Browsers | Invoke chrome browser in selenium http://teachyourselftestautomation.com
---------------------------------------------------------------------------------------------------------
Follow me @
Facebook:   / kevin.itoe.50  
Google+: https://plus.google.com/u/0/103559195...
Pinterest: https://www.pinterest.co.uk/owasuik/
My Blog: http://teachyourselftestautomation.com/
My YouTube Channel:    / @teachyourselftestautomatio1271  
--------------------------------------------------------------------------------------------------------
My Videos:
   • Install And Configure Java | Selenium...  
   • Eclipse Installation | eclipse softwa...  
   • Java Project Template | Java Projects...  
   • Download And Configure Selenium | Sel...  
   • Basic Selenium Test Script To Invoke ...  
-------------------------------------------------------------------------------------------------------
What Wikipedia says about selenium: https://en.wikipedia.org/wiki/Seleniu...)


На этой странице сайта вы можете посмотреть видео онлайн Basic Selenium Test Script To Invoke Web Browsers | Invoke chrome browser in selenium длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Teach Yourself Test Automation 04 Декабрь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 369 раз и оно понравилось 4 зрителям. Приятного просмотра!