Hi to all,

Who can help me with understanding regular expressions in Object
Repository.

Here is the problem:

1) I have a web app, if I open the same page several times the
corresponding tabs will be opened with names like: "Tab Name", "Tab
Name - 2", "Tab Name - 3" etc.
2) I described these Tabs in OR like: "class = WebElement", "index =
2", "innertext = TabName*" and checked out the regular expressions
check box.

So I expected that the script should recognize all app tabs with
"class = WebElement", "index = 2", and innertext like "Tab Name", "Tab
Name - 2", "Tab Name - 3". Am I right or not?


Set TabName = Description.Create()
TabName("innertext").Value = Parameter("PageName") - it's always
"TabName"
TabName("index").Value = "2"

Browser("BrowserName").Page("PageName").Frame("MainFrame").WebElement
(TabName).GetROProperty("innertext")

Currently this script is not working for tabs with names "Tab Name -
2", "Tab Name - 3" etc., it can not recognize them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to