Clicking on popup dialog boxes.

38 views
Skip to first unread message

Oliver Powell

unread,
Mar 26, 2013, 3:20:58 PM3/26/13
to clj-we...@googlegroups.com
Does anyone know how to click on a popup ?

I have been struggling now for a while with no luck, everything I try just gives me:

UnhandledAlertException Modal dialog present


Any help would be much appreciated ;)


Mayank Jain

unread,
Mar 26, 2013, 4:16:39 PM3/26/13
to clj-we...@googlegroups.com
What version of the webdriver are you using?
What browser/Platform?





--
You received this message because you are subscribed to the Google Groups "clj-webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-webdrive...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.

Mayank Jain

unread,
Mar 26, 2013, 4:17:00 PM3/26/13
to clj-we...@googlegroups.com
Also share the piece of code you are trying which is failing.
--
Regards,
Mayank.
Message has been deleted

Oliver Powell

unread,
Mar 27, 2013, 4:14:48 AM3/27/13
to clj-we...@googlegroups.com

Using [clj-webdriver "0.6.0-beta3"]

And actually if I'm honest I have no clue how to click a popup, I'm just wondering how you would do it. I figured I could send an "enter" key via send-keys using key-code. But that requires I send it to a certain element, and then it just gives the above error.

Basically I just want to know how to accept popup dialog boxes.

Mayank Jain

unread,
Mar 27, 2013, 5:17:49 AM3/27/13
to clj-we...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "clj-webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-webdrive...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.

Oliver Powell

unread,
Mar 27, 2013, 6:40:33 AM3/27/13
to clj-we...@googlegroups.com
Thanks so much ;)

semperos

unread,
Mar 29, 2013, 12:22:16 PM3/29/13
to clj-we...@googlegroups.com
Perhaps I should have named this functions something like "alert-accept" or "popup-accept." Any thoughts? Could easily be added as an alias.

I think I avoided using a longer name to avoid associating the name to a particular type of browser-based popup, which could include an alert with one buttons, a choice dialog with multiple buttons, or an input dialog with a text field.

Mayank Jain

unread,
Mar 29, 2013, 6:44:35 PM3/29/13
to clj-we...@googlegroups.com
I guess it's just newly added to the library thus its not there in docs[1].
I knew about it coz I read the api code and the discussion here.

It's not that confusing but lets see what others have to say.

I would say let's just add it to the docs link below. If people still have issues finding it,
we'll add an alias for it as you mentioned.



On Fri, Mar 29, 2013 at 9:52 PM, semperos <daniel.l...@gmail.com> wrote:
Perhaps I should have named this functions something like "alert-accept" or "popup-accept." Any thoughts? Could easily be added as an alias.

I think I avoided using a longer name to avoid associating the name to a particular type of browser-based popup, which could include an alert with one buttons, a choice dialog with multiple buttons, or an input dialog with a text field.

--
You received this message because you are subscribed to the Google Groups "clj-webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-webdrive...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.
Reply all
Reply to author
Forward
0 new messages