How To Write Customized Xpath In Selenium Webdriver | Selenium Webdriver Tutorial

Veröffentlicht am: 18 Dezember 2018
auf dem Kanal: Teach Yourself Test Automation
471
4

How To Write Customized Xpath In Selenium Webdriver | Selenium Webdriver Tutorial http://teachyourselftestautomation.com

We have seen howto use the browser tool to generate your xpath for any element or object on a web page

Why would you want to know how to generate your own Xpath or know how to customise Xpaths?

For one you need to know various methods to generate an xpath and for another reason browser generated xpath are not 100 percent full proof

I have yet to see one that has not worked oin my test script but not ever web page or site are developed with the same amount of care

Check out the syntax for customised xpath @ my blog day 11 How To Write Customized Xpath In Selenium Webdriver

Once you have inspected the element or object you want to create you own xpath for it comes down to substituting tagname, attribute and attribute value from HTML code for that element into yout xpath syntax and you are good to
go

Remember every xpath you generate you can use the developer console tab to validate and check if it's correct before you start using it for scripting

See you tomorrow @ day 12

How To Write Customized Xpath In Selenium Webdriver | selenium webdriver tutorial 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 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...  
   • How To Write Customized Xpath In Selenium ...  
-------------------------------------------------------------------------------------------------------
What Wikipedia says about selenium: https://en.wikipedia.org/wiki/Seleniu...)


Auf dieser Seite können Sie das Online-Video How To Write Customized Xpath In Selenium Webdriver | Selenium Webdriver Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Teach Yourself Test Automation 18 Dezember 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 471 Mal angesehen und es wurde von 4 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!