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

  Рет қаралды 59,358

Software Testing Mentor

Software Testing Mentor

Күн бұрын

Пікірлер: 15
@manoj_mafiosi
@manoj_mafiosi Жыл бұрын
**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. - Add "starts-with(@id, 'static_part')" to identify dynamic web elements. - Example: starts-with(@id, 'session_').. - 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.
@laponiec
@laponiec 2 жыл бұрын
Brilliant course! Thank you!
@b.w.7247
@b.w.7247 2 жыл бұрын
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
@revanthsivanantham6571
@revanthsivanantham6571 2 жыл бұрын
yeah, me too. started using some other website.
@hamzaakbar7984
@hamzaakbar7984 2 жыл бұрын
Yes, Because "elements are inside Shadow DOM and for such elements XPath won't support."
@studiesonsoftwaretesting9768
@studiesonsoftwaretesting9768 3 жыл бұрын
thank u for the video
@freddiekhambata2506
@freddiekhambata2506 3 жыл бұрын
Sir, what if the attribute is completely dynamic? Not even a portion of it is static.
@vishalpatel6969
@vishalpatel6969 7 ай бұрын
how to select between multiple values with same static part for eg: name123, name2345, name178 then starts-with[@ , name] will give list
@James-dn7pw
@James-dn7pw 3 жыл бұрын
sir is there a video tutorial for SelectorsHub xpath tool?
@softwaretestingmentor
@softwaretestingmentor 3 жыл бұрын
Please find the link below: kzbin.info/www/bejne/nJXPmqSGhruZopI
@gunnerbrennan9091
@gunnerbrennan9091 3 жыл бұрын
I know Im asking the wrong place but does anyone know of a trick to get back into an instagram account? I was dumb forgot the password. I love any assistance you can offer me
@korbinbrayan4794
@korbinbrayan4794 3 жыл бұрын
@Gunner Brennan instablaster :)
@gunnerbrennan9091
@gunnerbrennan9091 3 жыл бұрын
@Korbin Brayan I really appreciate your reply. I found the site through google and I'm in the hacking process atm. Seems to take quite some time so I will reply here later when my account password hopefully is recovered.
@gunnerbrennan9091
@gunnerbrennan9091 3 жыл бұрын
@Korbin Brayan It did the trick and I now got access to my account again. I am so happy! Thanks so much you saved my account !
Selenium XPath Tutorial #4 - XPath Contains Function with Examples
8:29
Software Testing Mentor
Рет қаралды 59 М.
Selenium XPath Tutorial #1 - Introduction to XPath | Basic XPath Syntax
16:07
Software Testing Mentor
Рет қаралды 126 М.
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 1,9 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 16 МЛН
Selenium XPath Tutorial #2 - Relative Vs Absolute XPath
9:07
Software Testing Mentor
Рет қаралды 71 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 89 М.
Selenium How to create xpaths
18:21
Automation Step by Step
Рет қаралды 98 М.
Axes XPath | XPath tutorial in Tamil - Part 5
20:44
Kurimurai
Рет қаралды 4,2 М.
Selenium XPath Tutorial #7 - XPath Axes Methods | Parent, Child, Self
12:31
Software Testing Mentor
Рет қаралды 60 М.
How to write xpath in Selenium when properties has no unique values?
15:57
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 1,9 МЛН