AW: AW: [Wtr-general] fileField problems

2005-08-09 Thread Neumann, Carsten - ENCOWAY
The problem with the file upload is solved, it was my mistake. But still I have to select the file by myself in the Choose file window. After I clicked open it continues. The same problem occurs when running filefield_test.rb from the unittests folder, I still have to select the file (or even

[Wtr-general] Very slow speeds

2005-08-09 Thread Josh Miller
I am having a problem with slow speeds using watir (both 1.3 and 1.4). I have a page with about 2000 text fields 1000 of those have ID tags the other do not. Navigating to this page is very fast however when the script is entering data into the fields via ID tags it is very slow, about one

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Zeljko Filipin
If I use Watir::dialog.button('OK').click I get error undefined method `dialog' for Watir:Module (NoMethodError) Zeljko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, August 09, 2005 6:11 PM To:

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Iain
I'm getting an error whenever I add require 'watir/dialog' to any script c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__': No such file to load -- watir/dialog (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require'

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Bret Pettichord
You need to run the install.rb script. At 11:26 AM 8/9/2005, Iain wrote: I'm getting an error whenever I add require 'watir/dialog' to any script c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `require__': No such file to load -- watir/dialog (LoadError) from

Re: [Wtr-general] Define methods within test case?

2005-08-09 Thread Shao Kang Tat
I have my test cases set up the same way and it doesn't matter if you define the method before or after. Ive seen that error before and it's as simple as changing: method1 to method1() Shao ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] WET -- Stack overvlow, Helo

2005-08-09 Thread Sathya Shankar
Hi Kim, Thanks for Your good words. Actually Hue found the same problem and we just fixed it. We posted the Latest Zip files in WET's download area. Download the new files and then install it. That should work fine. And keep them comming. Thanks Satti Alexander, Kim (Kim) wrote:

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Iain
Thanks, hindsight is a wonderful thing ... I can get dialog_tests.rb to run without issues now although the installer gave an error message. Is this anything to be concerned about? Going to install to C:\Program Files\WATIR with startMenu=1 and desktop=0 Copying Files watir.rb -

Re: [Wtr-general] class_name attribute of Div elements

2005-08-09 Thread Rob Lally
Thanks Bret, it was me and not Watir. I was setting the elements class in javascript using setAttribute(class, the value) rather than className. So of course it didn't work. I do think there is something hokey with div's though because trying to print out a div throws NoMethodError: undefined

Re: [Wtr-general] WET -- Stack overvlow, Helo

2005-08-09 Thread Chris Morris
Sathya Shankar wrote: Actually Hue found the same problem and we just fixed it. We posted the Latest Zip files in WET's download area. Can you post a link? I seem to have missed the previous posts about WET. -- Chris http://clabs.org/blogki ___

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Bret Pettichord
You should be fine. I've committed a fix to the installer to avoid this problem in the future. The problem is due to the fact that the rdocs aren't in the tar ball. Bret At 12:14 PM 8/9/2005, Iain wrote: Thanks, hindsight is a wonderful thing ... I can get dialog_tests.rb to run without

Re: [Wtr-general] class_name attribute of Div elements

2005-08-09 Thread Bret Pettichord
I've committed a fix for this. At 01:06 PM 8/9/2005, you wrote: I do think there is something hokey with div's though because trying to print out a div throws NoMethodError: undefined method `style' for #Watir::Div:0x2d7b660 c:/tools/ruby/lib/ruby/site_ruby/1.8/watir.rb:2211:in

Re: [Wtr-general] Watir::Form questions

2005-08-09 Thread Paul Rogers
If your html looks like this: form name=abc1 method=post action =/do/something input type=text name = the_text_field /form you would use a form like this: ie.form(:name , 'abc1').text_field(:name , 'the_text_field').set('567') There are more examples in the form_test.rb unit tests what

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Iain
Thanks, One more question, does this only work with buttons that trigger dialog boxes? I've ran dialog_test.rb to completion without any issues and also created my tests that clear dialogs after clicking a button. However, in the application I'm testing there's a link which triggers the dialog

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Bret Pettichord
Any object is supported, buttons, links, whatever. At 05:21 PM 8/9/2005, Iain wrote: controls = ie2.frame(:name, Controls) controls.remote_eval link(:index, 2).click() dialog.button('OK').click Instead try this: ie2.remote_eval frame(:name,

RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Iain
I get it now, thanks for correcting me. I think I'm getting closer to success, the code you provded below now clicks on the link that triggers the popup but instead of clearing it, I get a different error... ie2.remote_eval frame(:name, 'Controls').link(:index, 2).click()

Re: RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Paul Rogers
Bret, Im assuming you've named remote_eval that based on what it is doing. I dont find it a very intuitive name. Maybe something like one of these: ie.execute_command( ) ie.run_command() ie.delayed_execution() # is it actually delayed?? THis does look really good, thanks for doing it. This had

Re: RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Bret Pettichord
There is a method in Ruby which is called 'eval'. It takes a string and evaluates it as Ruby code. IE#remote_eval is based on this, hence the name. Python and Perl and Lisp all have eval methods that do the same thing, so the name is pretty well established and understood by anyone who has

Re: [Wtr-general] [WET] No Method Error?

2005-08-09 Thread Raghu Venkataramana
Hi Hue, The error that you get indicates that the second level frame (name:=search) could not be identified. Could you try a Browser(title:=Client).Frame(name:=leftframe).show_frames() and see if the name is not misspelt or duplicate? If it is a duplicate, then you could try to add the second

RE: RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Bret Pettichord
At 12:19 AM 8/10/2005, Scott Hanselman wrote: Ya, I really don't like the name either, as it (deeply) exposes the implementation, IMHO. That said, here's my hypocritical votes: * spawn_eval * forked_eval * eval_newthread * newthread_eval * run_on_new_thread of these, i liked forked_eval the

RE: RE: [Wtr-general] New, improved support for popup dialogs

2005-08-09 Thread Tim Feltham
ie.alert sounds good to me. I haven't had a chance to use this new code yet...can I do a show_all_objects on the popup? Can it select items in drop down lists yet? Cheers, Tim From: [EMAIL PROTECTED] on behalf of Bret Pettichord Sent: Wed 10/08/2005 5:47

Re: [Wtr-general] Very slow speeds

2005-08-09 Thread Bret Pettichord
Have you tried using the -f command line switch? This speeds up our unit tests by a factor of 2, but the optimizations focus on text fields, so you may see an even better improvement. At 11:12 AM 8/9/2005, Josh Miller wrote: I am having a problem with slow speeds using watir (both 1.3 and