This is a migrated thread and some comments may be shown as answers.

Radio Button Events not firing after selection of Radio button

7 Answers 354 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chaitanya
Top achievements
Rank 1
Chaitanya asked on 02 Jan 2014, 08:33 AM
Hi Team,

I have encountered an issue with telerik test studio, There are two radio button in my web page by default the first radio button will be selected, so based on the selection of the radio button the text boxes should be displayed in the next page.

Here is the scenario

RadioButton1, RadioButton2 are the names of radio buttons

If I check Radiobutton1 and click continue, in the next page only one Text box needs to be displayed.

If I check Radiobutton2 and click continue, in the next page only two text box needs to be displayed.

But the problem here is if select the second radio button and click on continue on the page it still show me the only one text box(instead it should show two text boxes). Seems the Radio button selection event is not firing up during playback.

But there is no issue when I am doing it manually.

Am I missing some thing here.

Thanks & Regards
G.Chaitanya

7 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 07 Jan 2014, 09:31 AM
Hi Chaitanya,

Thank you for contacting.

Please make sure you have selected InvokeOnClick event from the step property (see the attached screen shot).

If OnClick event is not the one which makes the changes on the last page you should invoke the proper event in a coded step.

Please check out this article in order to get detailed information.

Hope this helps.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Victor
Top achievements
Rank 1
answered on 07 Apr 2015, 09:28 AM

Hi Guys,

 Im also having the same problem as Chaitanya, ived recorded the step wherein the radio button is clicked. But when I run the script, it does not even click that radio button even though the InvokeOnClick property is selected. Any help would be greatly appreciated.

0
Boyan Boev
Telerik team
answered on 10 Apr 2015, 05:09 AM
Hi Victor,

Chaitanya had a problem with firing jQuery events. It seems that your issue is with clicking the radio button. Am I right?

If this is the issue please give us more detailed information:

1. What exactly happens when you run the test? Does it fail?

2. Send us the execution log.

3.  Could you please record a Jing short video executing your test so we can better understand your scenario.

4. You can send us also a screen shot of the DOM.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Victor
Top achievements
Rank 1
answered on 10 Apr 2015, 06:56 AM

Hi Boyan,

As requested, kindly see attached for the short video and the execution logs.

 

0
Boyan Boev
Telerik team
answered on 15 Apr 2015, 06:44 AM
Hi Victor,

Thank you for the video. Unfortunately I still cannot fully understand the issue.

As I can see in the video as well as in the log file, you are choosing option B, however you are not clicking the submit button.

What step or action should save the data?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Victor
Top achievements
Rank 1
answered on 16 Apr 2015, 06:54 AM

Hi Boyan,

 

Sorry for the late reply. The expected result was that if I select the "option B" a text will be displayed on top of "Option B" with text message as "Saved" and the proceed on clicking the "Submit" button. The issue I have was that, after executing the script, right after it selected "Option B", the expected text message "Save" is not displayed, hence our speculation that the button was not clicked (although it did), hence triggering "Submit" button will just throw an error message.

0
Boyan Boev
Telerik team
answered on 17 Apr 2015, 01:18 PM
Hello Chaitanya,

Thank you for the additional information. Now I understand the issue.

Most probably some event which runs the save action is not triggered.

You have two options here:

1. Consult with your developers which is the event and trigger it manually. Here is an article which describes this approach.

2. Add the element (the radio button) manually to the element explorer and create a simple click step against it via the Step Builder. Set the simulate real click property of the click step to true. See the attached screen shot.

Let me know if this helps.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Chaitanya
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Victor
Top achievements
Rank 1
Share this question
or