05-11-2008, 06:34 AM
(This post was last modified: 05-11-2008, 07:42 AM by Anshoo Arora.)
Ankur Wrote:inputbox is generally used to test whether your automated script is working fine or not, then data is taken from datatable.Well, all it does is take a value from the user and assigns it to a variable.
QTPVV Wrote:Do we have option in QTP to have input box which will have radio buttons so that users can select one of the radio button. Unlike as now with Inputbox user has to type in value.Technically, this is possible. But here, you will have to feed the property of the RadioButton that you want the value to be set in. Something like this:
Code:
SystemUtil.Run "iexplore.exe", "www.hotmail.com"
sName = InputBox("Enter WebEdit name")
Browser("micclass:=Browser").Page("micclass:=Page").WebEdit("name:=" & sName).Set "userName"
When the InputBox pops up, enter "login" (without quotes). Login is name description of the WebEdit.
However, this method is not recommend. It is for informational purposes only.