question

rara312 avatar image
rara312 asked

How can I use a Find Node with a starts with or like option?

Hi, I am trying to write a statement in which my test step finds a parent node and node name but then I want it to start with only those two items or to have a wildcard entry as the parent node and node name are the same but the end of the node name varies, how do I do this? I currently have the following which finds a specific nodename each time but it then fails when the node name has a varied ending to it. This FindNode function is used in several places so I can't be too specific with the full name/s it's to find. function FindNode(parent, nodeName, ) { var found = parent.FindChild(["ClrClassName", "WPFControlText"], ["TextBlock", nodeName], 10); That option finds the following > 'Publish, compare job'. I want it to find something along the lines of 'Publish, compare job Adv123' Thank you in advance for your help and advice.
sqllike
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.