Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use regular Expression to find node item in swfTreeView
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
After having created the RegExp object and set the pattern to search for, get all the recently visible tree nodes using

Code:
myNodes = SwfWindow("MyApp").SwfTreeView("myTree").GetContent
Then perform the search for this expression on the myNodes string. In the nodes of my tree were some special characters which I did not mark as literal what caused the search to fail.

Code:
Set NodeMatches = myRegEx.Execute(myNodes)

In the NodeMatches are the found matches of the search. Pick one of the matches (if there are more) and you have the full path of a node which can be used to do the expand operation.

The check box to enable regular expressions I read about, has nothing to do with this case. It can be found in the Object Repository and can be used to enable regular expressions to identify the controls. After clicking the button to parameterize a controls property, the check box is located in the upcoming dialog window.

Hope this helps someone.

Regards,

Simone
Reply


Messages In This Thread
RE: Use regular Expression to find node item in swfTreeView - by sischmidt - 06-04-2008, 01:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,495 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,356 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,825 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,571 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,121 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)