Hi!

 

I was using the following code to execute my scripts but uncounted WIN32OLERuntimeError: focus - Error

 

Code:

$ie.frame("Main").text_field(:id, "tbJobs__ctl0_txtTbPrnPageNumber").set("2")

$ie.frame("Main").button(:id, "tbJobs__ctl0_btnTbPrnGo").click

 

Error is:

WIN32OLERuntimeError: focus

    OLE error code:800A083E in htmlfile

      Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.

    HRESULT error code:0x80020009

      Exception occurred.

    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3388:in `method_missing'

    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3388:in `set'

 

Will you plz suggest me how to handle this.

 

Thanks,

SIkander

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to