How do you retrieve run time data from QTP scripts if the run time properties are not available.

For eg I have 'Window("Microsoft Excel - PivotTable67").Window("Query Refresh").Activate'.
I need to get the string 'Microsoft Excel - PivotTable67'.
Can anybody tell me how to get that using Regular Expressions,GetROProperty or some other technique

Showing Answers 1 - 1 of 1 Answers

Hi

    If u wnat to try "GetROProperty" then try this
output='Window("Microsoft Excel - PivotTable67").GetROProperty("Value")
Variable "output " will return the window name.

Other wise if u like to use regular expression then go to repositery chage the name properties as follows "^Microsoft Excel -.*" . This will recognise any window which starts with "Microsoft Excel -"

  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