**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.
@laponiec2 жыл бұрын
Brilliant course! Thank you!
@b.w.72472 жыл бұрын
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
@revanthsivanantham65712 жыл бұрын
yeah, me too. started using some other website.
@hamzaakbar79842 жыл бұрын
Yes, Because "elements are inside Shadow DOM and for such elements XPath won't support."
@studiesonsoftwaretesting97683 жыл бұрын
thank u for the video
@freddiekhambata25063 жыл бұрын
Sir, what if the attribute is completely dynamic? Not even a portion of it is static.
@vishalpatel69697 ай бұрын
how to select between multiple values with same static part for eg: name123, name2345, name178 then starts-with[@ , name] will give list
@James-dn7pw3 жыл бұрын
sir is there a video tutorial for SelectorsHub xpath tool?
@softwaretestingmentor3 жыл бұрын
Please find the link below: kzbin.info/www/bejne/nJXPmqSGhruZopI
@gunnerbrennan90913 жыл бұрын
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
@korbinbrayan47943 жыл бұрын
@Gunner Brennan instablaster :)
@gunnerbrennan90913 жыл бұрын
@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.
@gunnerbrennan90913 жыл бұрын
@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 !