Selenium XPath Tutorial #3 - XPath Starts-with Function with Examples

preview_player
Показать описание
In this Selenium XPath tutorial we will learn about XPath starts-with function with example. Starts with function is very helpful in finding the dynamic webelements on any webpage in Selenium Automation.

Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶
#XPathTutorial #XPath #SeleniumXPath #SeleniumTutorial #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
Рекомендации по теме
Комментарии
Автор

**Understanding the "starts-with" Function in XPath - Notes:**

- Introduction:
- Starts-with function helps locate dynamic web elements on web pages.

- Scenario:
- Web element has an ID attribute with a static value and a changing dynamic number.
- Example: ID could be "session_123" or "session_456."

- Using "starts-with" Function:
- Format: double forward slash for relative XPath, followed by the tag name in square brackets.

- Finding Elements with Static Values:
- The starts-with function is not limited to dynamic values.
- It can also locate elements with static attribute values by copying the static part.

- Conclusion:
- The "starts-with" function in XPath is useful for locating dynamic web elements.
- It allows specifying the static part of an attribute to identify elements despite dynamic changes.
- Starts-with can be powerful in automation frameworks, whether for dynamic or static values.

manoj_mafiosi
Автор

It appears that Salesforce changed their webpage considerably since this video. Unfortunately, when I try any of these samples using the xpath method nothing is found. I have tried several different variations of the search but nothing appears to work. Has anyone else come across this problem? Videos are well done and helpful. thanks

b.w.
Автор

how to select between multiple values with same static part
for eg: name123, name2345, name178
then starts-with[@, name] will give list

vishalpatel
Автор

Sir, what if the attribute is completely dynamic? Not even a portion of it is static.

freddiekhambata
Автор

sir is there a video tutorial for SelectorsHub xpath tool?

James-dnpw