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

How to verify an "IE Error on Page"

6 Answers 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
test cdb
Top achievements
Rank 1
test cdb asked on 13 Aug 2010, 10:55 AM

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

Sort by
0
Konstantin Petkov
Telerik team
answered on 13 Aug 2010, 11:39 AM
Hi test cdb,

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
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
0
test cdb
Top achievements
Rank 1
answered on 13 Aug 2010, 12:06 PM

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.

0
Konstantin Petkov
Telerik team
answered on 13 Aug 2010, 04:45 PM
Hello,

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
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
0
Pankaj
Top achievements
Rank 1
answered on 11 May 2012, 12:03 PM
Hi,

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
0
Anthony
Telerik team
answered on 11 May 2012, 09:40 PM
Hello Pankaj,

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.

Regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Pankaj
Top achievements
Rank 1
answered on 14 May 2012, 06:09 AM
Hello Anthony,

Thanks you very much for your response.

Regards,
Pankaj
Tags
General Discussions
Asked by
test cdb
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
test cdb
Top achievements
Rank 1
Pankaj
Top achievements
Rank 1
Anthony
Telerik team
Share this question
or