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 "

Answer Posted / amarendra kothuru

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2256


What is qtpro?

582


How to remove associated function library?

550


What are the common defects found in your project? (in qtp interview)

1608


How to get popup error message.

1023






How to call a test from another test?

671


What is checkpoint in qtp?

542


What are the different types of action?

545


How do you configure QTP AND Test director?

1487


Describe the differences between functions and actions in UFT?

600


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1526


Whether qtp 9.0 supports Test director8.0

2112


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1604


Why do we use breakpoints in QTP?

572


Explain hybrid framework with advantages and disadvantages?

538