On Wednesday, October 30, 2013 5:29:21 PM UTC-5, seth f wrote:
>
> Is watir-webdriver not compatible with Firefox 24/25?   I went back to 
> firefox 21 and my exec_script calls started working again.  On FF 24/25 I 
> couldn't even get simple exec_script('alert()') or document title changes 
> to work.
>

I received similar results on FF24 if I interrupted my browser session by 
manually controlling the browser. If I navigate exclusively using 
Watir-Webdirver, I do not have any issues.

I did also update to the latest selenium-webdriver gem as well (2.37).  I'm 
on OS X 10.9, Ruby 2.0.0p247.

Are you taking control of the browser manually at any point? Does it happen 
in irb?

Code that worked for me:
@browser = Watir::Browser.new
@browser.goto "google.com"
@browser.execute_script "alert()"
@browser.alert.close
# If I took manual control of the browser here, all following calls to the 
browser would fail
# In irb, all of this code works as expected.
@browser.goto "yahoo.com"
@browser.execute_script "alert()"

--
Andrew

-- 
-- 
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

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to