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
Hoe can we do retesting using functions please give the code for it using login page
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
How do you open adobe acrobat file in QTP and do some testing on that file ?
images are dynamically changes how to compare two images with out using the bitmap
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What is the expert view?
Explain how qtp identifies objects?
Explain about datafile/verification of date file when file is not available in local system?
What is checkpoints for quicktest professional (qtp)?
Have you used xml check point in your project? How?
What is action split and the purpose of using this in qtp?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
What is the pros and cons between QTP and Rational Robot
What are the Application Functions available in QTP?