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 |
VBscript for QTP,best tutorial?
how to delete folder test3,test4 and test5 using vbscript?
write a vb script to find simple interest using functions
How to declare an array in vbscript?
Explain about the asc function?
What are the differences between Visual Basic, VBA and VBScript? When would it be appropriate to use one as opposed to another?
How to return only alpha bate string from an string str = "bibhu@#$%&das&*)(SUndar"
how to add action through AOM in QTP
after medical test,when will be the police verification
how to set one column as primary key in QTP and fetch values accordingly
Explain about arrays in vb script?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message