Hi,
I need to accept user inputs for login at runtime.I know i
can use Inputbox but how to proceed further that i dont
know.
Thanks in advance
Answers were Sorted based on User's Feedback
Answer / bala
hai this bala,
i know the answer as per my knwoledge
try it once
script for flight reservation:-
n=inputbox("enter how many times you want give")
for i=0 to n
a=inputbox("enter user name")
dailog("Login").winedit("Username").set a
b=inputbox("enter password")
dialog("Login").winedit("password").set b
dailog("Login").winbutton("OK").Click
stmtms---------------
--------------------
-------------------------
Next
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sangee
user=inputbox("enter the user","login","sam")
browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").WebEdit("name:=userName").Set user
hint: sam is optional,u can enter the user name at the
runtime also.
Is This Answer Correct ? | 0 Yes | 1 No |
write a vb script to display first 5 odd numbers from 1 to 100
write a vb script to generate hello 5 times using do until loop
how to get date format from system locale..format means neither long nor shor... format from system locale. i need like your date is mm/dd/yyyy formate or mm-dd-yy or with time like that. how to get.
what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?
Mention what if you do not specify anything when you call a procedure?
How can constants be declared in the vbscript language?
Mention what is the difference between vbscript and vba?
What are the 2 ways to pass a value to the function?
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
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
How will you format a number in percetage format in vbscript?
What is byref and byval parameters in vbscript?