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

Hello All, In QTP 9.2 for Mozilla Firefox, there is webelement in my application, I tried to click on that using decsriptive programming, but it does not work. and for this i tried this code too: Set obj = CreateObject ("Mercury.DeviceReplay") absx = Browser("").Page("").WebElement(".").GetROProperty ("abs_x") absy = Browser("").Page("").WebElement(".").GetROProperty ("abs_y") obj.MouseMove absx, absy obj.MouseClick absx, absy, 0 But it is not clicked. Can anyone help me out for this problem. Thnx in Advance

1 Answers  


Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.

1 Answers  


Find Out Length of an array without using Ubound?

1 Answers  


Is vbscript language a case-sensitive language and what does it mean?

0 Answers  


How to find arry size in qtp vb script

2 Answers   Cap Gemini,






what is the difference between modular and data and keyword driven framework

0 Answers  


I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh

3 Answers  


How can you test font size, type and color using QTP tool?

3 Answers  


. Program for sorting of numbers in vb script?

2 Answers   Talent Sprint,


what is extension of the file if its saved from recovery manger to some drive

1 Answers  


What is difference between vbscript and vba?

0 Answers  


What is the technology used by vb script?

0 Answers  


Categories