Generic function for selecting a Radio Button in a Dialog



Generic function for selecting a Radio Button in a Dialog..

Answer / Upasana Jyoti Tripathi

In Automation Testing, you can create a generic function to select a radio button in a dialog. Here's an example using QTP (QuickTest Professional):
```
Function SelectRadioButton(dialogName, radioButtonName)
Dim objDialog, objRadioButton
Set objDialog = Browser("Firefox").Page(="Dialog").Dialog(dialogName)
Set objRadioButton = objDialog.GetObject(radioButtonName)
If Not (objRadioButton Is Nothing) Then
objRadioButton.Select
End If
End Function
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

How software testing is handled?

1 Answers  


How did you use automating testing tools in your job?

0 Answers  


Types of F/w in Automation

1 Answers  


Do you know how can we make one test method dependent on other using testng?

1 Answers  


Describe some problem that you had with automating test tool?

1 Answers  


How do you start Selenium RC?

2 Answers  


What types of scripting techniques for test automation do you know?

0 Answers  


1.Which functinalities of QTP using in onlinebanking system? 2.in lift which kind of testing you perform? 3.how do you test money is transform from one account to another account in online banking?

1 Answers   TCS,


what is test complete tool? Which are most important terms in it? please give little introduction of it.

1 Answers  


What is the deference between automation tools and management tools?

1 Answers  


Explain what is the hybrid framework?

1 Answers  


Tell me what are pros and cons of automating tests at ui layer?

1 Answers  


Categories