Re: [wtr-general] Re: execute js in IE8

2009-11-26 Thread aidy lewis
Resorted to toggling active scripting def toggle_javascript_capability(is_capable, zone_id) regpath = Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\#{zone_id} puts regpath regvalue = '3' if is_capable then regvalue = '0' end

[wtr-general] Re: execute js in IE8

2009-11-25 Thread Ethan
Do you get the same thing if you try browser.document.parentWindow.eval(whatever) ? On Wed, Nov 25, 2009 at 13:26, aidy lewis aidy.le...@googlemail.com wrote: Hi, I am trying to execute some js in IE8: browser.ie.document.parentWindow.execScript(window.confirm=function(){return true});

[wtr-general] Re: execute js in IE8

2009-11-25 Thread aidy lewis
Ethan, Same thing, but good suggestion. I am not even sure of the differences between eval and execScript. Cheers Aidy 2009/11/25 Ethan notet...@gmail.com: Do you get the same thing if you try browser.document.parentWindow.eval(whatever) ? On Wed, Nov 25, 2009 at 13:26, aidy lewis