I am using solution #6 from 
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups.
The Javascript popup disappears fine, but the underlying web
application does not operate normally.
I change 'Search Settings' in Google. I click on the Save Preferences
button when I have finished
updating the Google Search Settings and then click the OK button on
the Javascript popup.
If I do this manually the page goes back to the Google home page, but
if I do it with Ruby-Watir the
control stays on the Search Settings page.
I have Watir 1.6.7 with ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-
mingw32]

David

On Dec 12, 11:23 am, Jarmo Pertman <jarm...@gmail.com> wrote:
> Use the simplest way to handleJavaScriptpopups described in the wiki
> athttp://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
>
> Jarmo Pertman
> -----
> IT does really matter -http://www.itreallymatters.net
>
> On Dec 7, 2:31 am, Eric Mathiesen <mathiese...@gmail.com> wrote:
>
> > 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 ajavascriptconfirm 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 thejavascriptconfirm 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 onjavascriptOK buttons.
>
> > Thanks!
>
> > Shawn
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search
> > before you ask, be nice.
>
> > watir-gene...@googlegroups.comhttp://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

Reply via email to