Thursday, 14 December 2017

Regular expresstion for locators (xpath)

Regular expresstion for locators (xpath)
it can be used when values are keep changing
ex - username1,username2 etx...
Note: Keep contstant word a side
syntax - //tagName[contains(@attribute,'value')]
ex - //input[contains(@name,'username')]

No comments:

Post a Comment