How to set the function parameters as optional.
Pls anybody can give the answer.. Thanks in advance...
Answers were Sorted based on User's Feedback
Answer / uday kumar_anem
As far as i am aware, there is no keyword for optional
parameters in VBScripts.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saroj
In function parameter you can't use optional option. But
you can mark the statements inside the function as optional
by putting keyword "OptionalStep" before the statement.
ex:
Function login(name,passwd)
OptionalStep.Brw("login").Webedit("name").set name
Brw("login").Webedit("passwd").set passwd
Brw("login").Webbutton("ok").click
End Function
This may help you.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the Application Functions available in QTP?
unable to get item from the combobox using descriptive programing. can any one give me the peice of code to schedule the booking from one place to another using DESCRIPTIVE PROGRAMING.
unique properties of button,edit box, radio button,check box?
Give me some real time point of way where exactly we can conduct audits?
How should I get results when I run scripts in a Batch mode
WHAT IS PARAMITARIZATION?
explian qtp frame work and what is the use of it? what is the neceecity of this? explian detail?
How to use descriptive programming?
What is a Run-Time Data Table? Where can I find and view this table?
I came across Good question ..... Write a script to only download pdf's if there are 20 links on a page. Kindly reply these type of questions are pretty challenging..
actually how many hours per one day we will work on automation(qtp) in real time
How we can add actions in the test using QTP?