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



QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop ..

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

QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop ..

Answer / 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

More QTP Interview Questions

what are the qtp tester responsibilities?

3 Answers  


What is QTP Frame Work ,and i want it in detail

2 Answers   Value Labs,


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

0 Answers   TechSoft,


How does qtp identify objects in the application?

0 Answers  


What are the Features & Benefits of Quick Test Pro (QTP)..?

5 Answers  






How u will open the build automatically in QTP except using Systemutil.run command

6 Answers  


What type of error u will get if u have not installed java add in in java project? what is the error name ?

1 Answers   Verizon,


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

0 Answers   Livetek,


diff between global variables and environment variables in qtp?

1 Answers   FIS,


can u pls explain me About Driver script.

4 Answers  


with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script?

3 Answers   Ordain Solutions,


Can we record an application running on a remote machine using qtp?

0 Answers  


Categories