I have link on my screenBuild Activity (9).Clicking on the link a page apperas.The number part above keeps on changing.If i record this click with text "Build Activity (9)"and twhile execution teh number changes say text becomes "Build Activity (2)" QTP thros an error saying then Object properties do not match or the object does not exist.I think Regexp can be a solution for this.Can anyone explain me how.Email: arthere@hotmail.com

Showing Answers 1 - 3 of 3 Answers

Resources menu-Object Repository-select the object-select name/attached text property visible in right pane-click on <#> icon-select regular expression checkbox-click 'No' in the dialog box appeared-write the regular expression as [0-9]* exactly in place of your record time no. 9 in your example.
for example,if record time text is       Text 9   then
valid regular expression is                Text [0-9]*
whereas Text[0-9]* is invalid because there is one blankspace between Text and 9. So we have to maintain this space in our regular expression also i.e. in between Text and [0-9]* otherwise QTP would fail in recognising that object

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions