QTP identifying the child tabs in a maintab like
tab_1,tab_2,tab_3,tab_4
while using a for loop for these tabs.its not proceeding
from _1 to _2.
How can i use "for loop "
Answers were Sorted based on User's Feedback
Answer / maniram
You can use regular expression in this case instead of using
"for loop"
Ex:
use any of these
tab_[0-9][0-9]
or
tab_ ..
or
tab_ .* will take any value
This should be set in the object properties.
| Is This Answer Correct ? | 1 Yes | 1 No |
For example, If the Tabs are recogized in QTP as
Webelements, and the Tab name starts with "Tab_" and the
number changes then, the following loop may helpful for you.
for var_i = 1 to 4
Browsr("BrowserName").Page("Page").WebElement
("innertext:=tab_" & var_i).Click)
Wait 10
Next
I think so... This logic may help you....
| Is This Answer Correct ? | 1 Yes | 2 No |
How the QTP recognize, handle n reports that a error has been handled by it(QTP) when we perform a recovery scenario in our application n in what manner it will display it in resulting window? Plz help me out.
How to make arguments optional in a function?
what is the syntax for regular expression in QTP? how to create user defined functions in QTP?
how to invoke the web application through script in qtp
what is the Command used to start the QTp from Run.(start-> Run)
How can you handle exceptions in qtp?
How do you invoke any application and write a script to invoke QTP using VB Script.
What is Object Spy in QTP?
How many types of recording modes in the qtp?
hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me
1.how can we report the QTP test result in a different excel sheet 2.
what are the different Frame Works in Quick Test Proffessional testing