CSS Selector | How To Write Custom CSS Selectors In Selenium Webdriver | CSS Selector Example

Publicado em: 19 Dezembro 2018
no canal de: Teach Yourself Test Automation
454
3

CSS Selector | How To Write Custom CSS Selectors In Selenium Webdriver | CSS Selector Example http://teachyourselftestautomation.com

Welcome to Day 12 on Teach Yourself Test Automation and it's day 12 of me teaching myself selenuim webdriver with Java

Day 12 is about How To Write Custom Css Selectors In Selenium Webdriver

CSS Selector is just as powerful as using XPath

Most experts and colleagues I have spoken to at work have preferred using Xpath to locate and interact with elements or objects on a web page or for automating test scripts

Again you can use the web browser tool to generate your CSS selector by inspecting the element and navigating to copy css selector option and you should have your css selector for that object copied to your clip board to be used later

However, for all web pages the browser tool might not bring back a reliable css selector or might return a dynamic css selector which will change each time your web page refrehes hence will not be a good ideal to use

So with the above in mind it's a good idea learning how to customized your own css selector

You can get the syntax for custom css selector from my blog at Day 12 http://teachyourselftestautomation.com

Go ahead and substitue tagname and attributes off your HTML code for your inspected web object into you css selector syntax

Now you can use your customized css selector in your eclipse as you script your automated test cases

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


Nesta página do site você pode assistir ao vídeo on-line CSS Selector | How To Write Custom CSS Selectors In Selenium Webdriver | CSS Selector Example duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Teach Yourself Test Automation 19 Dezembro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 454 vezes e gostou 3 espectadores. Boa visualização!