Hello Team,
The Silverlight application under test that I verify is sometimes generating "Error On Page, and my test failed.
So to avoid to continue the test for nothing, I would like to know if there is a way to know, within the framework, if an IE "Error on Page" has occured.
The browser type in use is IE 8.
I have attached a screenshot to illustrate this type of error.
Thanks & Regards.
6 Answers, 1 is accepted
Am I correct this dialog from the screen shot does not popup automatically?
An easy way to make your test fail will be to configure the browser to popup the error dialog instead. With the 2010 Q2 version of WebAii (and above) the test should fail by default if such unexpected dialog pops up. We introduced a setting called UnexpectedDialogAction with HandleAndFailTest default value.
Kind regards,
Konstantin Petkov
the Telerik team
Hello Konstantin,
Your are right, the popup is not opened automatically. The notification is on the IE Statusbar and I have to double-click on it to obtain the popup. It was only to show you the details. So the UnexpectedDialogAction will not be useful for me.
More, as indicated in another post, I use mySettings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle in my settings because I manage myself the browser popup (External AuoIT application) due to the different type of Win32 dialogs & French Language.
I will see if AutoIt can help me another time to turn around this "special request"
Thanks for your time.
Regards.
We don't have anything else to suggest for the time present. I'll log a feature request to expose a way to verify the browser status bar indicates an error on the page.
Best wishes,
Konstantin Petkov
the Telerik team
Can anyone tells me that how to read a message from the browser's statusbar using telerik framework?
There is a scenario that after updating a record it shows a message "Record Updated Successfully" in the browser's status bar.
Please find the attached screenshot for more details.
If anyone has any workaround then also please let me know.
Regards,
Pankaj Kukkar
There's no built-in feature in the Framework to read to browser's status bar message.
We thought that using code to invoke Javascript to read the window.status property would return a string, similar to the code here, however I couldn't get it to work. The string was always empty.
This may be because the status property does not work in the default configuration of IE, Firefox, Chrome, or Safari. Also, most (newer) major browsers disable status bar messages by default.
Anthony
the Telerik team
Test Studio Trainings
Thanks you very much for your response.
Regards,
Pankaj