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



Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to procee..

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

Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to procee..

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

Post New Answer

More VB Script Interview Questions

write a vb script to display first 5 odd numbers from 1 to 100

4 Answers  


write a vb script to generate hello 5 times using do until loop

4 Answers  


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.

2 Answers  


what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?

4 Answers   CybAge,


Mention what if you do not specify anything when you call a procedure?

0 Answers  


How can constants be declared in the vbscript language?

0 Answers  


Mention what is the difference between vbscript and vba?

0 Answers  


What are the 2 ways to pass a value to the function?

0 Answers  


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

3 Answers   TCS,


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

0 Answers  


How will you format a number in percetage format in vbscript?

0 Answers  


What is byref and byval parameters in vbscript?

0 Answers  


Categories