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

How will you report the bug and explain the defect tracking sheet you handled?

2531


Explain about Test Fusion Report of QTP?

601


How do you open adobe acrobat file in QTP and do some testing on that file ?

610


How are actions and functions different in QTP?

642


what is object and child object.. explain ..if possible give some example for better understanding ..

1517






How to use the object spy in quicktest professional (qtp) 8.0 version?

500


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1595


Is it possible to change the property value at runtime? How it is possible?

561


How to create runtime property for an object?

1436


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1416


What are the general steps involved in the data driven framework?

542


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

607


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1569


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1538


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1460