Regular Expression In Xpath Selenium

Опубликовано: 20 Декабрь 2018
на канале: Teach Yourself Test Automation
2,950
23

Xpath contains | Regular Expression Concept for Xpath and CSS Selector http://teachyourselftestautomation.com
Selenium Certification Training: http://bitly.com/2PA8HCA

Hello and welcome to Day 13 - Regular Expression Concept for Xpath and CSS

Lets start with when you will want to make use of xpath or css selector regular expressions

first scenario is when the attribute to the element or object i too long and it's the only attribute you have for that object then you could elect to use a regular expression xpath where you use a subset of the text of that attribute

second scenario is if your attribute for the element is dynamic so alphanumeric it has a high probability to change each time the page is refreshed so in this case again you might want to use regular expression xpath or css selector and make use of the sub set of the attribute that stays constant when page is refreshed

In the live example we did i this video we used the boots website and use regular expression xpath to enter text in email field and used css selector regular expression to enter password and use id locator to click on login button

In general it was a success but web page was slow and we had to correct our script a few times

Xpath contains | Regular Expression Concept for Xpath and 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...)


На этой странице сайта вы можете посмотреть видео онлайн Regular Expression In Xpath Selenium длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Teach Yourself Test Automation 20 Декабрь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,950 раз и оно понравилось 23 зрителям. Приятного просмотра!