Alert from ScriptManager.RegisterStartupScript is not captured by Selenium

View: New views
2 Messages — Rating Filter:   Alert me  

Alert from ScriptManager.RegisterStartupScript is not captured by Selenium

by adgreat1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have an aspx page that contains a ModalPopup Extender. When a button on the ModalPopup extender is clicked, it sends an alert prompt using ScriptManager.RegisterStartupScript. The alert prompt appears but Selenium doesn't detect it. Is there a workaround for this?

We already tried using GetAlert() and GetConfirmation() but it just returned an exception:
Selenium.SeleniumException: ERROR: There were no alerts.


Adri

Re: Alert from ScriptManager.RegisterStartupScript is not captured by Selenium

by adgreat1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


adgreat1 wrote:
I have an aspx page that contains a ModalPopup Extender. When a button on the ModalPopup extender is clicked, it sends an alert prompt using ScriptManager.RegisterStartupScript. The alert prompt appears but Selenium doesn't detect it. Is there a workaround for this?

We already tried using GetAlert() and GetConfirmation() but it just returned an exception:
Selenium.SeleniumException: ERROR: There were no alerts.


Adri
Anybody? Please Help me.