I'm not sure it's a better option than AutoIT, but you can change that setting directly in the registry (see another recent thread for a discussion of modifying the registry from Ruby).
On my machine HKEY_USERS\<user ID omitted for brevity>\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3 has the security settings for the internet zone. Setting the value named "1400" to 3 disables scripting; setting it to 0 enables scripting. To find yours, export the registry before and after making the change through the IE options UI and diff the two. And of course, you can check the state of IE by reading the appropriate registry key. Hope that helps, Richard -- Richard Lawrence Certified Scrum Coach Founder and Principal Consultant, Humanizing Work, LLC 303-895-7688 rich...@humanizingwork.com www.humanizingwork.com www.richardlawrence.info On Sun, Dec 14, 2008 at 7:29 PM, Paul Denize <paul.den...@datacom.co.nz> wrote: > > I have a bunch of scripts (run manually) in which the user has to turn > on and off Javascript to see that the site remains usable (despite > behaving somewhat differently). I'd love to automate these now. > > 1. Does anyone have any fuinctions for turning IE Javascript support > on/off > > 2. And maybe if I'm really lucky an example of how to check what state > the browser is in? > > My attempt would be to use Autoit for 1 but I find that Autoit > (overused) makes test scripts a bit "fragile" > > > Paul > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---