Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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.

1 Answers  


How to make arguments optional in a function?

2 Answers   Crea,


what is the syntax for regular expression in QTP? how to create user defined functions in QTP?

6 Answers   CTS, MBT, TCS,


how to invoke the web application through script in qtp

8 Answers   Synechron,


what is the Command used to start the QTp from Run.(start-> Run)

7 Answers   GE,


How can you handle exceptions in qtp?

0 Answers  


How do you invoke any application and write a script to invoke QTP using VB Script.

2 Answers   HealthAsyst,


What is Object Spy in QTP?

1 Answers   Crea,


How many types of recording modes in the qtp?

0 Answers  


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

3 Answers  


1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


what are the different Frame Works in Quick Test Proffessional testing

5 Answers   Wipro,


Categories