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
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 |
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 |
Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.
Which environments does qtp support?
does test plan is in test strategy or test strategy is in test plan.
In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.
what is the diffrence bw qtp architectute and qtp framework?
What is the difference in between function and sub as well as give some code of both
What test you perform mostly? Regression or retesting in your testing process?
Hi .. i want to write the script for the combo nox list . For example if any combo box having a multipul itme. So how can i retrive each item for each iteration ? help me out .
what type of run time errors you get while you ar edoing rpg program?
w is descriptive programming
who is developed QTP ? is it from Mecury or HP
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent