List Info

Thread: Executing javascript in 1.5




Executing javascript in 1.5
user name
2006-12-20 11:32:03

Has the support for executing javascript changed in 1.5?

 

A method I used previously:

 

  def run_script(js)

    ie.Document.parentWindow.execScript(js)

  end

 

calling the execScript method no longer seems to work…;.

 

Max Russell

Test Analyst.

INPS

 

Tel: 01382 223900

Fax: ;01382 204488

 

Visit our Web site at www.inps.co.uk

 

The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of In Practice Systems Limited or any of its affiliates. If you are not the intended recipient please contact is.helpdeskinps.co.uk

 

Executing javascript in 1.5
user name
2006-12-20 16:36:27
You're calling straight into the document ole object, Watir shouldn9;t be doing anything but passing the call on to IE. What error are you getting? Are you running the scripts on the same box with different version of Watir and seeing it fail?

-Charley

On 12/20/06, Max Russell < mrussellinpses.co.uk">mrussellinpses.co.uk> wrote:

Has the support for executing javascript changed in 1.5?

 

A method I used previously:

 

  def run_script(js)

 &nbsp;  ie.Document.parentWindow.execScript(js)

  end

 

calling the execScript method no longer seems to work….

 

Max Russell

Test Analyst.

INPS

 

Tel: 01382 223900

Fax: 01382 204488

 

Visit our Web site at www.inps.co.uk

 

The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of In Practice Systems Limited or any of its affiliates. If you are not the intended recipient please contact is.helpdeskinps.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">is.helpdeskinps.co.uk

 


_______________________________________________
Wtr-general mailing list
rubyforge.org">Wtr-generalrubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )