QTP identifying the child tabs in a maintab like
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
use any of these
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
("innertext:=tab_" & var_i).Click)
I think so... This logic may help you....
|Is This Answer Correct ?||1 Yes||2 No|
Explain the difference between check point and output value?
What the differences are and best practical application of each.
how u write vb script in qtp pls give me some basic script and some material
what is aregular expression?
write code to read and write data from file?
Expalin Text/Text Area Checkpoint
Dis advantages of XML checkpoint ?
Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........
What is diffrence between Global variables and Environment variables...Anybody can give me answer..Thanks in advance..
what r the main attributes of test automation?
Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepad text file rather than in the QTP result window. Suppose this is my simple script:WHich will open the notepad file and enter some text and then will change the font then will calculate how much time has been taken.Now, in this script i want to display the result in notepad file. Dim s Dim starttimer,endtimer,timeit s="uyetuywqtywqte" SystemUtil.Run "notepad","","Y:\","" Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp Window("Notepad").Dialog("Save As").WinEdit("File name:").Set "test1" Window("Notepad").Dialog("Save As").WinEdit("File name:").Type micReturn Window("Notepad_3").Type s Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp starttimer=timer Window("Notepad_3").WinMenu("Menu").Select "Format;Font..." Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Type "cou" + micDwn Window("Notepad_3").Dialog("Font").WinComboBox ("Font:").Select "Courier" Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Set "Courier" Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type micReturn endtimer=timer timeit=endtimer-starttimer print(timeit) Please also tell me where the function for the text file result will be declared and where it should be called. Thanks, Gaytri
Plz explain about Virtual object? What is the situation u r using , explain with example?