On Saturday, February 23, 2013 9:41:37 AM UTC-8, [email protected] wrote: El viernes, 22 de febrero de 2013 16:14:25 UTC-2, Željko Filipin escribió: > > On Fri, Feb 22, 2013 at 8:59 AM, <[email protected]> wrote: > >> How can I get a simple OK to be clicked in a Javascript dialog box? > > > http://watirwebdriver.com/javascript-dialogs/ >
> Hi Željko > > Thanks for your answer! > > Yes, I had tried that. The first method doesn't work... The pop up just > doesn't react to the .ok, or .close. I tried the alternative method, but > that only worked when I placed the "execute_script" BEFORE the fire_event. > I haven;t seen that little detail described anywhere ... > > Thanks, > Fabian > Can you show us the code you tried? I often find when people read the examples and then try to code from them that they can make a small mistake like a syntax error and presume that the approach doesn't work when they problem is that it was not used correctly. Seeing your code can help us tell if that is the case or not Also some things that look like a javascript popup may not be.. if you can right click on the popup and use 'inspect element' it's not usually a true javascript popup, and can be treated like any other element -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
