XPath text() Method | Find element by Text function in selenium webdriver

Publié le: 04 octobre 2020
sur la chaîne: AllSoftwareProgramming
203
3

In this videos, I have explained the XPath by text() function in Selenium WebDriver.
Refer to the below points:

If the Attribute is matching with more than one element or if the attribute is not present then we can identify the element using its text. It has the following

syntax: //tagname[text()=’textValue’]
syntax: //tagname[.=’textValue’]

Examples: //div[text()=’Login ‘]
//div[text()=’Users’]
//td[text()=’Java’]
//div[@class=’label’][text()=’Users’]


Sur cette page du site, vous pouvez voir la vidéo en ligne XPath text() Method | Find element by Text function in selenium webdriver durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur AllSoftwareProgramming 04 octobre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 203 fois et il a aimé 3 téléspectateurs. Bon visionnage!