How To Validate Xpath And CSS Using Browser Tool | Selenium Tutorial

Published: 17 December 2018
on channel: Teach Yourself Test Automation
1,429
10

How To Validate XPath And CSS Using Browser Tool | Selenium Toturial http://teachyourselftestautomation.com
Selenium Certification Training: http://bitly.com/2PA8HCA

To validate xpath and Css selector in selenium you make use of the developer tool or browser tool console tab

Why would you want to validate your xpath or css selector

Before you use it in your script you might want to make sure it is correct so it saves you time

When we get round to customizing xpath and css selector this will be the ideal time to check if you came u with a correct xpath or css selector since yu will be doing this yourself and mistakes do happen

Find an element or object on a web page, grab the xpath or css selector you want to validate by inspecting the element or object and copying the xpath or css

Click on the console tab, top menu of the developer or browser tool window, your cursor will begin to blink on the empty box

Within this empty box type your xpath shell structure syntax, you will have to check out by blog day 10 for xpath shell structure validation syntax

Place your xpath within the double speech quotations and hit enter and hoover over result, if the element or object is highlighted when you hoover over the returned code result in the developer tool window then your xpath is correct

Do same with your css selector

How To Validate XPath And CSS Using Browser Tool | Selenium Toturial http://teachyourselftestautomation.com
-------------------------------------------------------------------------------------
#testautomation #teachyourselftestautomation #selenium #webdriver #java
--------------------------------------------------------------------------------------------------------
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 Webd...  
   • Eclipse Installation | eclipse software | ...  
   • Java Project Template | Java Projects | My...  
   • Download And Configure Selenium | Selenium...  
   • Basic Selenium Test Script To Invoke Web B...  
   • Selenium Tutorial | WebDriver Browser And ...  
   • Selenium Webdriver Locators | Locators In ...  
   • Find Elements On Web Page With Link Text X...  
   • How To Validate Xpath And CSS Using Browse...  
-------------------------------------------------------------------------------------------------------
What Wikipedia says about selenium: https://en.wikipedia.org/wiki/Seleniu...)


On this page of the site you can watch the video online How To Validate Xpath And CSS Using Browser Tool | Selenium Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Teach Yourself Test Automation 17 December 2018, share the link with friends and acquaintances, this video has already been watched 1,429 times on youtube and it was liked by 10 viewers. Enjoy your viewing!