[Wtr-general] Modal Dialog/Vista -- undefined method `hwnd'

2007-07-06 Thread Michael Kernaghan
Bret Suggested: I think the error message may be misleading. I think the problem may actually be caused by the use of frames. Can you show us the code that is failing? Certainly. Warts and all here it is: require 'watir' require 'win32ole' include Watir require 'test/unit'

Re: [Wtr-general] Modal Dialog/Vista -- undefined method `hwnd'

2007-07-06 Thread Charley Baker
Modal dialogs aren't part of a frame, they're generated and owned by ie, so this line: ie2.frame(ContentFrame).modal_dialog.text_field(:id, 'FileUploader').set('C:\Users\Public\Pictures\Sample Pictures\Dock.jpg') should read: ie2.modal_dialog.text_field(:id,

[Wtr-general] Modal Dialog/Vista -- undefined method `hwnd'

2007-07-05 Thread Michael Kernaghan
Interesting. I think I have worked out my understanding problems but now I get this problem. Maybe I need an older rev of Ruby 1.8.2? Environment Ruby 1.8.2-15 MS Vista watir-1.5.1.1166 Error Message NoMethodError: IE#modal_dialog not supported with the

Re: [Wtr-general] Modal Dialog/Vista -- undefined method `hwnd'

2007-07-05 Thread Bret Pettichord
I think the error message may be misleading. I think the problem may actually be caused by the use of frames. Can you show us the code that is failing? Bret Michael Kernaghan wrote: Interesting. I think I have worked out my understanding problems but now I get this problem. Maybe I need