Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input Box
#1
Not Solved
Hi,

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.
Reply
#2
Not Solved
inputbox is generally used to test whether your automated script is working fine or not, then data is taken from datatable.

What purpose will it solve if you have a radio button to take your data... moreover why do you want to restrict yourself with the limited no of values(test data) which can be used by the radio buttons,unless of course you make a big list.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
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. Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 884 07-01-2020, 11:32 AM
Last Post: Alaguraja
  How to get input from the user in QTP? shanthiK 10 18,485 08-07-2017, 11:34 PM
Last Post: zunebuggy
  Problem in Input from keyboard:sendkeys Rachna 1 4,956 10-14-2013, 06:07 PM
Last Post: anil2u
  How to Pass Output value as input from one IE windoe to another IE window newqtp 0 2,384 01-24-2013, 08:36 AM
Last Post: newqtp
  Default value in Edit Box when Check Box is checked nacchio 2 5,070 07-18-2012, 12:21 PM
Last Post: sree.85

Forum Jump:


Users browsing this thread: 1 Guest(s)