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 |
How software testing is handled?
How did you use automating testing tools in your job?
Types of F/w in Automation
Do you know how can we make one test method dependent on other using testng?
Describe some problem that you had with automating test tool?
How do you start Selenium RC?
What types of scripting techniques for test automation do you know?
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?
what is test complete tool? Which are most important terms in it? please give little introduction of it.
What is the deference between automation tools and management tools?
Explain what is the hybrid framework?
Tell me what are pros and cons of automating tests at ui layer?