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

Unhandled exception thrown during automation step execution

1 Answer 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sam Davis
Top achievements
Rank 1
Sam Davis asked on 25 May 2010, 12:55 PM

I am getting an error "Unhandled exception thrown during automation step execution". When I recorded the script,
one of the steps is clicking on a radio control. When I run the script, it is trying to set a button to true and failing.
When I use the Locate in DOM tool, and hover over the Radio Control, it locates the button instead of the Radio Control. I attached a screenshot of the area in the page. I am clicking on the radio labled "Depot Print Label" and the playback is trying to set the button labled as "Find Postcode" to true

 This is what was in the test log:

Overall Result: Fail
--------------------------------------------------
'5/25/2010 5:54:52 AM' - 'Pass' : 1. Navigate to : 'https://superuser-uat1.tester.loopone.com/'
'5/25/2010 5:54:53 AM' - 'Pass' : 2. Keyboard (KeyPress) - Tab (1 times) on 'UsernameText'
'5/25/2010 5:54:53 AM' - 'Pass' : 3. Set 'UsernameText' text to 'xxxxxx'
'5/25/2010 5:54:53 AM' - 'Pass' : 4. Set 'LoginPasswordPassword' text to 'xxxxxxxx'
'5/25/2010 5:54:56 AM' - 'Pass' : 5. Keyboard (KeyPress) - Enter (1 times) on 'LoginPasswordPassword'
'5/25/2010 5:54:57 AM' - 'Pass' : 6. Check 'PsushShipmentTypeContractRadio' to be 'True'
'5/25/2010 5:54:57 AM' - 'Pass' : 7. Set 'ValidationNumText' text to 'r998877'
'5/25/2010 5:54:59 AM' - 'Pass' : 8. Click 'ValidateContractNumButton'
'5/25/2010 5:54:59 AM' - 'Pass' : 9. Connect to pop-up window : 'https://superuser-uat1.tester.loopone.com/ship_su_contract_validation.epl?lookup=r998877'
'5/25/2010 5:54:59 AM' - 'Pass' : 10. Click 'SubmitBtnButtonTag'
'5/25/2010 5:55:00 AM' - 'Pass' : 11. Close pop-up window : 'https://superuser-uat1.tester.loopone.com/ship_su_contract_validation.epl?lookup=r998877'
'5/25/2010 5:55:01 AM' - 'Pass' : 12. Set 'PsushCallerNameText' text to 'test'
'5/25/2010 5:55:01 AM' - 'Pass' : 13. Set 'PsushCallerPhoneText' text to '1234'
'5/25/2010 5:55:01 AM' - 'Fail' : 14. Check 'ToFindPostcodeButton' to be 'True'
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unhandled exception thrown during automation step execution
InnerException:
System.ArgumentException: Invalid input type 'Button' for this control. Control was expecting 'Radio'
   at ArtOfTest.WebAii.Controls.Control.CreateInstance[TControl](Element e, Boolean throwIfNull)
   at ArtOfTest.WebAii.ObjectModel.Element.As[TControl]()
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.CheckActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--------------------------------------------------
'5/25/2010 5:55:01 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'5/25/2010 5:55:02 AM' - Overall Result: Fail
--------------------------------------------------

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 25 May 2010, 01:38 PM
Hi Sam,

Thank you for reporting that and sharing the stack trace.

We will need to test that against the exact HTML you're running and recording the tests against. Can you please submit a private support ticket and send credentials for us to log in to that site?

Kind regards,
Konstantin Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Sam Davis
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or