Plz give the vb script for the following scenerio.
In travel booking we have to select from delhi to mumbai
from the combobox The prices will be display in another
combo box .But i have to select the lowest price for it and
submit it
Answer / satyanj
<Obj Hierch>.WinComboBox("From").Select "Delhi"
<Obj.Hier>.WinCombobox("TO").Select "Mumbai"
Itmscnt = <Obj.Hier>.WinComboBox("Price").GetItemsCount
val = <obj.Hier>.WinComboBox("Price").GetItem(0)
For itm = 1 to Itmscnt-1
itmval = <Obj.Hier>.WinComboBox
("Price").GetItem(itm)
If cint(Val) < cint(itmval) then
msgbox "Val is less than itmval"
else
val = itmval
end if
Next
msgbox "Lowest price is: "&val
<Obj.Hier>.WinComboBox("Price").Select val
<Obj.Hier>.WinButton("Submit").Click
| Is This Answer Correct ? | 1 Yes | 0 No |
Mention when to use function procedures and what are its characteristics?
How to open a file. What is the perpose of true and false mode there?
If else for do while select in vb script?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
HOW TO OPEN NEW TAB USING VB SCRIPT IN QTP?
How strcomp function works?
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Difference between Function and Sub routine?
write a vb script to display ***** ***** ***** ***** *****
Write a program to create a Dynamic array of size 5 elements and display all the elements.
Suppose by navigation I went from 1 st page to 5 page ,so Write a generic script for coming from any page to the 1st page and by executing where the page may be it will come to 1st page
What are class events?