Modal dialog Present error

135 views
Skip to first unread message

Ravi Kiran

unread,
Dec 13, 2013, 5:32:50 AM12/13/13
to seleniu...@googlegroups.com
Hi All,

     In application whenever alert pop up is displayed, it closes as soon as it opens.
 
     So the next code to accept the alert fails and it shows "Modal dialog present".

    I have tried like waiting for few seconds to show the alert it didn't work

    I am using ruby with selenium webdriver.

balaji dn

unread,
Dec 13, 2013, 5:41:28 AM12/13/13
to seleniu...@googlegroups.com
What is the application behaviour ?, does it wait for the user the accept the alert or just displays and closes?.  If the latter is the behaviour then why are you handling the alert just launch the page and introduce a delay and then work on your page. 

Ravi Kiran

unread,
Dec 13, 2013, 5:46:58 AM12/13/13
to seleniu...@googlegroups.com
It just displays and closes.It dosen't wait for the user to alert the accept. I have used wait for 10 seconds to wait for an alert it didn't work

THRINATH

unread,
Dec 13, 2013, 6:10:16 PM12/13/13
to seleniu...@googlegroups.com
Here the application behaviour is like that, it opens and closed automatically.
You can't handle this, this wait statement you are writing for WebDriver to Wait, not to the Application ! 


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9cf634bd-ec6c-4943-a8eb-2a60296f0630%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Ravi Kiran

unread,
Dec 13, 2013, 8:47:32 PM12/13/13
to seleniu...@googlegroups.com
Application behavior is not like that. When i manually test it alert pops up and it is not closing when it opens.User can accept the alert


On Friday, 13 December 2013 16:02:50 UTC+5:30, Ravi Kiran wrote:

Aman Saraf Jain

unread,
Dec 14, 2013, 6:22:14 AM12/14/13
to seleniu...@googlegroups.com
Hi Ravi

Jst go to security setting of ur browser and disable automatic windows authentication.
and use java robot class to handle modal.
If u r nt familiar with robot class then pls lemme knw .

Aman


On Friday, 13 December 2013 16:02:50 UTC+5:30, Ravi Kiran wrote:

Ravi Kiran

unread,
Dec 15, 2013, 11:23:13 PM12/15/13
to seleniu...@googlegroups.com
Hi Aman,

    Thankyou for your response. Can you explain how to disable automatic windows authentication and I am not using java to use robot class (using ruby)

Ashok kumar

unread,
Dec 25, 2013, 12:29:41 AM12/25/13
to seleniu...@googlegroups.com
Hi,

There is an open source framework for handling windows related dialogs such as downloading, uploading, authentication etc. all these can be achieved using selenium java.

you can visit below url for further info

http://automationtestingutilities.blogspot.in


Regards
Ashok
Reply all
Reply to author
Forward
0 new messages