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 is the Difference between copy to action and call to action?

0 Answers  


In Datatable having the data like this S.no Name Address 1 raj hyderabad 2 suresh Mumbai 3 shyam chennai 4 dev banglore i want to get the shyam row id & column id using scipting i.e 3,3

4 Answers   Broadridge,


what r the 3 basic factor on which we determine to perform automation

6 Answers   AppLabs,


Hi guys i'm prepareing for interview question for qtp i don't have bayground for vb scipt language can any one tell me it is easy to do job in qtp without bayground.

3 Answers  


What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0

1 Answers   DELL,






how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,


How does QTP identifes the object in the application?

1 Answers  


Dear Friend, I am New in QTP 10 so can any one tell me how to do QTP testing on WEB APPLICATION while writing VBScript. If Possible then Give Example how to write vbscript in QTP to test WEB Apllication. Vishal Patil

2 Answers  


How can we change the .mtr file to .tsr file and vice-versa

3 Answers   Wipro,


what is the criteria for choosing test cases for automation? Ex: if you have some 300 test cases, then how many you choose for automation. what is criteria of selecting?

3 Answers   Aricent, Delhi University, TCS,


There r 1000 rows and 1000 coloums , in that I want pickup a name of the coloumn , pls dont say in sql statements , in interview one of the interviewer said it was a wrong answer pls any send me answer its urgent

1 Answers  


In QTP 8.2 there are lot of check points is this same in latest version QTP 9.5 ?

2 Answers  


Categories