Re: [wtr-general] Clicking OK javascript confirm popup?

2010-12-06 Thread Eric Mathiesen
Have you tried using .fire_event?

Sry I'm on my cell

On Dec 2, 2010 11:42 PM, slindsey3000 slindsey3...@gmail.com wrote:

I have read quite a few things online over the last 2 days about
clicking OK in a javascript confirm pop-up.  I have been unable to
select ok using watir and IE.

Here is the div --

div class=actions_wrapper clearfix

   p id=delete_threads class=btn small white small_white
style= onmousedown=util.toggleClass(this, 'active')
onmouseup=util.toggleClass(this, 'active')
onmouseover=util.toggleClass(this, 'hover')
onmouseout=util.toggleClass(this, 'hover')a href=#delete id=
class= onclick=if(confirm('Deleting means no going back.'))
{Mailbox.deleteThreads();} return false; target=Delete selected
conversations/a/p p id=select_all_threads class=btn small
white small_white style= onmousedown=util.toggleClass(this,
'active') onmouseup=util.toggleClass(this, 'active')
onmouseover=util.toggleClass(this, 'hover')
onmouseout=util.toggleClass(this, 'hover') a href=#selectall
id= class= onclick=Mailbox.toggleThreadSelection(); return
false; target=Select all/a/p

/div

My code --

browser.link(:text, Delete selected conversations).click_no_wait
???


-- End of code

This (above) line  triggers the javascript confirm dialog.

What goes in the ??? ... I have tried about 50 different things.  My
inexperience has gotten the best of me here with watir.

Any help or direction appreciated.  It seems like it should be easy
and common to have to click on javascript OK buttons.

Thanks!

Shawn

--
Before posting, please read http://watir.com/support. In short: search
before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Clicking OK javascript confirm popup?

2010-12-03 Thread slindsey3000
I have read quite a few things online over the last 2 days about
clicking OK in a javascript confirm pop-up.  I have been unable to
select ok using watir and IE.

Here is the div --

div class=actions_wrapper clearfix

p id=delete_threads class=btn small white small_white
style= onmousedown=util.toggleClass(this, 'active')
onmouseup=util.toggleClass(this, 'active')
onmouseover=util.toggleClass(this, 'hover')
onmouseout=util.toggleClass(this, 'hover')a href=#delete id=
class= onclick=if(confirm('Deleting means no going back.'))
{Mailbox.deleteThreads();} return false; target=Delete selected
conversations/a/p p id=select_all_threads class=btn small
white small_white style= onmousedown=util.toggleClass(this,
'active') onmouseup=util.toggleClass(this, 'active')
onmouseover=util.toggleClass(this, 'hover')
onmouseout=util.toggleClass(this, 'hover') a href=#selectall
id= class= onclick=Mailbox.toggleThreadSelection(); return
false; target=Select all/a/p

/div

My code --

browser.link(:text, Delete selected conversations).click_no_wait
???


-- End of code

This (above) line  triggers the javascript confirm dialog.

What goes in the ??? ... I have tried about 50 different things.  My
inexperience has gotten the best of me here with watir.

Any help or direction appreciated.  It seems like it should be easy
and common to have to click on javascript OK buttons.

Thanks!

Shawn

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com