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 |
how will you handle the situation when object is not caputred during record?
what are build and version plz explain why nomber changes in build and version?
how to count spaces in a given string ex: "this is jagadeesh" in QTP with simple functional script
Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). Pls anyone, very urgent
I have an application running in Linux server. I am reaching the application through emulators like telnet. My operating system at the client side is Windows XP. Using emulator I am connecting the Linux server and working on the application. Can I automate the testing of the software running in Linux server using QTP. In short, does QTP support the applications running in Linux servers.
Explain the concept of object repository and how qtp recognises objects?
Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text and Tables ?
What is Object Spy in QTP?
How many types of recording modes in qtp? Describe each type with an example where we use them?
Discuss quicktest professional (qtp) environment?
In QTP whether is it possible to call a function from one action to another action?
What are the ordinal identifiers in web page?