Re: [Wtr-general] Installing watir 1.5 actually installs 1.4.1 again

2007-07-20 Thread Bret Pettichord
marekj wrote: One word of caution with downloaded gems. Use 'gem install watir --local' option to to pick up the downloaded gem and not the --remote Actually, this only matters if you didn't actually download the gem to the current directory. ___

[Wtr-general] Discussion has Moved to Google Groups

2007-07-19 Thread Bret Pettichord
This discussion has moved to the Watir-General Google Group. This forum will be shut down shortly. Please post your questions here. http://groups.google.com/group/watir-general ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Recommended version of Ruby

2007-07-17 Thread Bret Pettichord
Derek Wong wrote: I remember in an earlier discussion thread that there was something about re-compiling some library to support modal dialogs on different versions of Ruby (correct me if I've misunderstood). Is there a better more maintainable way to do this without coupling WATIR to a

Re: [Wtr-general] How to deal with the copyrihgt symbol

2007-07-13 Thread Bret Pettichord
Željko Filipin wrote: On 7/13/07, *jhe* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Now, it seems that the difference is that your $ie.text will return \251, but my $ie.text only return ?, is it caused by ruby version? This is out of my league. Sorry. Maybe somebody else

Re: [Wtr-general] OO framework?

2007-07-12 Thread Bret Pettichord
aidy lewis wrote: I am concerned about hierarchy. In each class I hold methods relating to a specific HTML page. However, each HTML page does not inherit another by nature. My dilemma is should I inherit through a sequence of actions (i.e. a use-case)? A use-case is not OO. Login = Main_Page

[Wtr-general] Watir General is moving to Google

2007-07-12 Thread Bret Pettichord
This discussion is currently hosted as a Rubyforge mailing list and an OpenQA forum, gatewayed to each other, sometimes imperfectly. We are shutting down both the list and the forum and moving the Watir General discussion to a new group hosted on Google. This move results from a community

Re: [Wtr-general] Watir General is moving to Google

2007-07-12 Thread Bret Pettichord
Angrez Singh wrote: HI Bret, I tried subscribing to the group with subscription type as Email - Send each message to me as it arrives but not able to subscribe. Got error message There is a problem with your choice of subscription type Is there problem with group settings? Regards,

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-10 Thread Bret Pettichord
Paul Rogers wrote: have you looked at the modal_dialog stuff in watir? Ive never used it so cant help you much, but its there. +1 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Recovery System in WATIR

2007-07-09 Thread Bret Pettichord
Lavanya Lakshman wrote: I would appreciate if you could give more inputs on the features? I added the IE.find command to support error recovery. You also may want to look at Aslak Hellesoy's post on how he captured screens when watir tests failed. Bret

Re: [Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-09 Thread Bret Pettichord
Tiffany Fodor wrote: I just added that line to the rest of the require/include statements at the beginning of my script and it did the trick. It is a common practice to put the require and include statements together, but I don't recommend it. I intend to remove all examples of this from

[Wtr-general] Recommended version of Ruby

2007-07-09 Thread Bret Pettichord
What version of Ruby should we recommend? After a recent discussion we agreed that the rdoc (readme.rb) should read: Best is to use Ruby 1.8.2-14 or later. However, if you are using the Watir::IE#modal_dialog method, you must use Ruby 1.8.2-14 and not a more recent version. Watir (in

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

Re: [Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-05 Thread Bret Pettichord
Tiffany Fodor wrote: Hi all! I'm trying to use the verify method from assertions.rb, but I keep getting the following error: undefined method 'verify' for main:Object (NoMethodError) I've added require watir/assertions to the beginning of my script, but still can't use the verify

Re: [Wtr-general] Recovery System in WATIR

2007-07-05 Thread Bret Pettichord
Lavanya Lakshman wrote: Whenever we consider any tool for automation, the first and the foremost critical part is the recovery system. Unfortunately I didn't get much info related to this on the website. I would appreciate your thoughts and experience related to this. I agree. Watir

Re: [Wtr-general] How can I click h4 headline?

2007-07-03 Thread Bret Pettichord
Zeljko wrote: I have a h4 headline that I have to click. h4 id=addprojectCreate a new project/h4 This does not work. ie.h4(:id, addproject).click Is there a way to click it? class H4 NonControlElement TAG = 'H4' end module Container def h4(how, what) return

Re: [Wtr-general] Problem with attach using :title

2007-07-03 Thread Bret Pettichord
marekj wrote: hmmm... I was thinking that if I have 3 scripts running at the same time with -b switch they would get confused at which window to talk to. Take a look at concurrent_search.rb: require 'thread' require 'watir' def test_google ie = Watir::IE.start('http://www.google.com')

Re: [Wtr-general] Why Watir Has Bugs, was: Can't install Watir - Error opening file for writing: \watir\AboutItx.chm

2007-07-03 Thread Bret Pettichord
Željko Filipin wrote: On 6/26/07, *Chris McMahon* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Far better to have a test tool that actually works, with some non-core tests pointing the way to make it better. :-) So true. :) (But confusing to new users.) Zeljko It is

Re: [Wtr-general] Problem with attach using :title

2007-07-02 Thread Bret Pettichord
marekj wrote: a quick question about attaching to the session of IE. I am currently relying on attaching to one window on the desktop but I want to move towards running -b(ackground) option of Watir and running multiple IE windows. The best way I think I can do this is to maintain a handle

Re: [Wtr-general] Possible to run scripts when not logged in?

2007-07-01 Thread Bret Pettichord
Bill Agee wrote: I believe in most cases, your script will run fine if no Windows user is logged in. However, in my experience, there can be problems with the Watir::IE.attach method if no one is logged in to the machine. I believe this is because IE.attach uses the Shell.Application OLE

Re: [Wtr-general] Problem with attach using :title

2007-06-30 Thread Bret Pettichord
jim_matt wrote: I wanted to share something I discovered. I had reported earlier that I sometimes I had problems attaching a browser using :title. The problem turns out to be that title is part of the HTML. The confusion comes because if the HTML does not have a title, IE displays the

Re: [Wtr-general] ci_reporter usage of xml files

2007-06-29 Thread Bret Pettichord
marekj wrote: How do you guys read the reports, do you have some custom formatters to translate into HTML? I am new to ci_reporter and we don't run CI here. I just want to hook up some presentation layer to reports generated by ci. Can I specify some formatter options to ci_reporter at

Re: [Wtr-general] Best Combination - for Modal Dialog/Vista

2007-06-29 Thread Bret Pettichord
Michael Kernaghan wrote: I am looking for a good test example somewhere. I have got a simple one to work so far. The modal dialogs I actually have to test for real are more complex, and in fact involve stacked frames in modal dialogs. Have you looked at our unit tests?

Re: [Wtr-general] Redirection of standard output

2007-06-26 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: Actually IO#sync means that you should call the sync method on an object that belongs to the IO class. It does not represent executable Ruby code. In your case it means to do $stdout.sync, as originally suggested. Thanks, I had no idea of that. Is that

Re: [Wtr-general] Redirection of standard output

2007-06-26 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: Bret Pettichord wrote: It is a Ruby-specific meta language. It is often used in rdoc. I've seen this lead to lots of confusion. I would express this idea (IO#sync) thus: io.sync = true And the reader would then have to understand that io

Re: [Wtr-general] Hiding IE

2007-06-25 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: [EMAIL PROTECTED] wrote: Yes. Either pass -b to watir as a command line option, or set $HIDE_IE = true before calling Watir::IE.new. Thanks. That worked nicely. I'm surprised to hear that. Those mechanisms are just automatic ways of doing what you

Re: [Wtr-general] Redirection of standard output

2007-06-25 Thread Bret Pettichord
Ah, good call. Another way to cure it might be to disable buffering for $stdout completely, with: $stdout.sync = true Thanks. I looked for the syntax for that. I saw something like IO#sync = true That did not seem to work. Has it changed? Actually IO#sync means that you should

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-25 Thread Bret Pettichord
Tiffany Fodor wrote: Am I missing something? Any help would be appreciated! You'll have to share more of your code with us for us to help. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Hiding IE

2007-06-25 Thread Bret Pettichord
Lennart Borgman (gmail) wrote: Bret Pettichord wrote: Lennart Borgman (gmail) wrote: [EMAIL PROTECTED] wrote: Yes. Either pass -b to watir as a command line option, or set $HIDE_IE = true before calling Watir::IE.new. Thanks. That worked nicely

Re: [Wtr-general] Ruby/Watir on Vista : watir-1.5.1.1192 and windows-pr-0.6.2 : SetConsoleCommandHistoryMode : RuntimeError

2007-06-25 Thread Bret Pettichord
Michael Kernaghan wrote: I have no trouble on Vista with Ruby and Watir 1.4.1. However, in my efforts to do UI with modal Dialog I need to use recent Watir Gem. I installed Ruby and then the latest Gem according to the instructions. I get these errors:

Re: [Wtr-general] test/unit argument error

2007-06-25 Thread Bret Pettichord
maung aung wrote: Hi, When i wrote the following statement and run ruby, i got this message: c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:64:in `initialize': wrong number of arguments (1 for 3) ArgumentError). When i run without test/unit case, it run just fine and no complaints. Could

Re: [Wtr-general] A novel use of Watir

2007-06-25 Thread Bret Pettichord
Manish Sapariya wrote: So here we need Apache httpclient, NekoHTML and some Ruby component. Does this Ruby component expose IEBrowser? Not as i understand it. They created an emulator instead. They did not use IE. ___ Wtr-general mailing list

[Wtr-general] A novel use of Watir

2007-06-23 Thread Bret Pettichord
I thought you all might find this to be of interest. Bret -- Forwarded message -- From: Andrew Geweke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri, 22 Jun 2007 10:15:25 -0700 Subject: Re: [jruby-user] Eclipse, JIRB, and long-run production development. On Jun 22, 2007, at

Re: [Wtr-general] display errors without exiting the script?

2007-06-23 Thread Bret Pettichord
mihai wrote: i have a link in $ie wich opens me a new window i attach that window to a variable $ie1 like that: $ie1=IE.attach(:title, /bla bla bla/) and i must verify if that window really exist or not how do i do that because if that window exist is ok, but if is not exist the script is

Re: [Wtr-general] Checking for pending XHRs and timers

2007-06-21 Thread Bret Pettichord
Jeff Fry wrote: Hey all, Watir.wait() listens to whether IE thinks its done loading, and then checks to see that the main document and any sub documents/frames have finished loading. More and more, there are pages that on load also kick off various XHRs

Re: [Wtr-general] Where to find watir classes and their methods

2007-06-20 Thread Bret Pettichord
maung aung wrote: I am new to ruby and watir. Can any one direct me where I can get more info about watir classes and their methods? Especially related to ie class and its methods. I have been to this site http://wtr.rubyforge.org/rdoc/index.html, but seems like it doesn't contain most

[Wtr-general] And now Rbehave

2007-06-19 Thread Bret Pettichord
I've been using Rspec more and more lately and am working on a article describing how i use it. But today, I see this: http://dannorth.net/2007/06/introducing-rbehave http://dannorth.net/2007/06/introducing-rbehave and realize that things are really moving in the Ruby world! Bret

Re: [Wtr-general] From comp.lang.ruby

2007-06-19 Thread Bret Pettichord
Paul Rogers wrote: From: Kev Jackson [EMAIL PROTECTED] Date: Thu, 24 Nov 2005 17:24:33 +0900 Local: Thurs, Nov 24 2005 2:24 am Subject: Watir - evaluation... Reply to author | Forward | Print | Individual message | Show original | Report this message | Find messages by this author I've

Re: [Wtr-general] frames and url()

2007-06-19 Thread Bret Pettichord
Chong Jiang wrote: Sorry, I do not know how to append this message to my previous one in threaded form. Whatever you did worked, so no worries. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] frames and url()

2007-06-19 Thread Bret Pettichord
Charley Baker wrote: I just added url to frame, you might want to download the latest code. Check the wiki faq for installing building the latest gem from source. Thanks! ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Understanding IE's wait method

2007-06-19 Thread Bret Pettichord
Jeff Fry wrote: I've been searching for but am unable to find the definition of the .busy and .readyState methods IE is calling. Can you let me know where they are declared (and ideally, how I might discover where they're declared). I assume they are included from something else, but I

Re: [Wtr-general] Watir no longer always waits for all frames to load

2007-06-19 Thread Bret Pettichord
Brown, David wrote: Gems prior to 1.5.1.1166 would either give me the access denied errors as it tried to wait for the inner frames to load - or if those were suppressed, I had to put in a manual wait whenever I navigated to a new page: sleep 0.1 until some_element_on_inner_frame.exists?.

Re: [Wtr-general] Load Error

2007-06-18 Thread Bret Pettichord
Max Russell wrote: can you post your test script? it would help to diagnose your problem. # Simple test harness What was your original question? Your reply was not indexed with the original post. Bret ___ Wtr-general mailing list

Re: [Wtr-general] OT: Is cruisecontrol.rb by thoughworks is withdrawn

2007-06-18 Thread Bret Pettichord
Manish Sapariya wrote: I am trying to access following url for last two days, but no success. http://cruisecontrolrb.thoughtworks.com/ See http://rubyforge.org/projects/cruisecontrolrb/ Both Alexey and Jeremy have made commits in the past week, but it does look like the project has lost

Re: [Wtr-general] Not able to find the title of newly opened window.

2007-06-18 Thread Bret Pettichord
kumari wrote: i think the window doesn't have URL ,it has only tiltle which can't be caputred before clicking the link.And the title is with respect to name of the person which changes depending on the link which we r clicking. Every browser window has a URL. Sometimes the browser will hide

Re: [Wtr-general] Method Precedence confusion

2007-06-18 Thread Bret Pettichord
Adam Reed wrote: Glad I could help. One thing you'd have most likely noticed if you were to run those 66 separate functions is an RPC Error that would stop your testing cold. Eventually IE can't open/close fast enough to keep up with the script, and basically crashes itself. So, you're

Re: [Wtr-general] Breaking code into several classes and methods

2007-06-17 Thread Bret Pettichord
Jeff Fry wrote: It complains about this line in particular: if $ie.link(:text, page.link_to_text).exists? But when I try it in irb it seems that page.link_to_text shouldn't be a problem: irb(main):040:0 $page = Page.new(c_eastwood, /view?id=%239202a8c04000641f8056de6, Mystic

Re: [Wtr-general] Understanding down_load_time on AJAXy pages

2007-06-17 Thread Bret Pettichord
Jeff Fry wrote: 100.times do url = $url_root + /view?id=%239202a8c04000641f80056de6 start = Time.now $ie.goto(url) if $ie.link(:text,'Million Dollar Baby').exists? $results_array $ie.down_load_time.to_s p '$ie.down_load_time:

Re: [Wtr-general] how to properly use the snippet function?

2007-06-17 Thread Bret Pettichord
reinier wrote: I am trying to get rid of all cookies via a function. On this forum I found the Snippet thingy. http://rubyforge.org/snippet/detail.php?type=snippetid=26 So I included that code in my script and trying to use it, but I can't figure out how. this is the code: [code]

Re: [Wtr-general] Our contribution to Watir

2007-06-16 Thread Bret Pettichord
Charley Baker wrote: It's great to have user contributions, I haven't had a chance to look at it yet, but will soon. Instead of adding it to a jira ticket, you should add it to the user contribution area of the wiki on openqa. http://wiki.openqa.org/display/WTR/Contributions I've been

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-15 Thread Bret Pettichord
Jeff Fry wrote: 1. When we say if you are using the Watir::IE#modal_dialog method, you must use Ruby 1.8.2-14 and not a more recent version. Do we really mean 1.8.2-14? It sounds like 1.8.2-15 worked correctly with --include-dependencies. Can we safely just change

Re: [Wtr-general] OT-ish: How many reqistered OpenQA Watir users?

2007-06-15 Thread Bret Pettichord
Chris McMahon wrote: I'm interested in how many registered users the project has. Other information like page traffic, downloads, would be fun to know also. I don't believe users register for specific projects. You can ask Patrick for the other information. Bret

Re: [Wtr-general] Microsoft Tab Strip Issues - urgent

2007-06-15 Thread Bret Pettichord
Can you find the session key in the page itself? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] frames and url()

2007-06-15 Thread Bret Pettichord
Chong Jiang wrote: Is there some way to return the url of a frame, for example, ie.frame(:index, 1), so I can navigate to the page with a goto? ie.frame(:index, 1).url ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Microsoft Tab Strip Issues - urgent

2007-06-14 Thread Bret Pettichord
imran wrote: Actually its a Microsoft Tab Strip, the better way to explain it i found a link. Please follow it. http://msdn2.microsoft.com/en-us/library/ms529257.aspx Thanks waiting for the response. OK. That is not ActiveX (i guessed wrong). It is a server-side code. When it hits the

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-13 Thread Bret Pettichord
Željko Filipin wrote: On 6/8/07, *Bret Pettichord* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I just installed ruby182-14.exe on clean xp pro machine. Components: only RubyGems Package Manager. Then I tried to install watir-1.5.1.1192.gem. I first executed Y:\gem install win32

Re: [Wtr-general] Upgrading the gem for watir 1.5.1.1192

2007-06-13 Thread Bret Pettichord
imran wrote: But there is another query. If you have a new question, please submit it under a (different) subject line that describes the problem. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] NoMethodError :Undefined method Process_id for 1808:Fixnum

2007-06-13 Thread Bret Pettichord
Simba wrote: When i Run Below is code in IRB ,its throwinf error require 'watir' ie=Watir::IE.start(www.google.com) Error : NoMethodError :Undefined method Process_id for 1808:Fixnum Please some body tell me why this error is coming? Before Going into IRB , I had installed Win32-process

Re: [Wtr-general] Microsoft Tab Strip Issues - urgent

2007-06-13 Thread Bret Pettichord
This looks like an ActiveX control. I don't know how to handle ActiveX controls with Watir. Can you point us to a page that includes this control? Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] $ie show/hide?

2007-06-12 Thread Bret Pettichord
mihai wrote: can i hide my IE page while its being test? something like: $ie.hide #test command $ie.show $ie.visible = false # test $ie.visible = true ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Concurrent tests, different regions...

2007-06-11 Thread Bret Pettichord
eisdrache wrote: I understand what you are saying about the global variables, but in this case they are a necessary evil as I am using the following code in order to handle javascript pop-ups: def startClicker( button , waitTime= 9, user_input=nil ) hwnd = $ie.enabled_popup(waitTime)

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-09 Thread Bret Pettichord
Jeff Fry wrote: Looks good to me...and now checked in. Thanks. I can never remember what is documented where. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-08 Thread Bret Pettichord
Simba wrote: Since one month I have been trying to implement Watir in our project , but still now i am struggling to decide which combiniation of ruby watir suites my project.Presently i am using Raby 1.8.2 Watir-1.5.1.1158 this will work fine for javascriptscript alert box 's but won't

Re: [Wtr-general] Best Combination of Ruby and Watir

2007-06-08 Thread Bret Pettichord
an error if you try to use this feature in newer versions of Ruby. If you need modal_dialog, you're limited to 1.8.2. -c On 6/8/07, *Jeff Fry* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 6/8/07, *Bret Pettichord* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED

Re: [Wtr-general] Concurrent tests, different regions...

2007-06-08 Thread Bret Pettichord
Paul Carvalho wrote: Without seeing more of the code, I'm pretty sure you need to start by moving away from using Global variables. I agree. You also will want to run each test in a separate thread. ___ Wtr-general mailing list

Re: [Wtr-general] forum do not get the postings made using the mailing list

2007-06-07 Thread Bret Pettichord
Manish Sapariya wrote: This particular mail is targeted to the admin of watir-general forum on openqa.org. This may be known issue, but I observed that the postings done using mailing list mail id, does not get reflected in the forum and many user's are using just forum for discussing the

Re: [Wtr-general] Modal dialog

2007-06-07 Thread Bret Pettichord
Hayato wrote: Does anyone know how to resolve this issue? Please let me know. Don't use threads. Blocking COM calls will block ALL ruby threads. You'll have to spawn code to run in a separate process instead. Bret ___ Wtr-general mailing list

Re: [Wtr-general] Upgrading the gem for watir 1.5.1.1192

2007-06-05 Thread Bret Pettichord
imran wrote: But still the code asking me to upgrade to 1.5.1.1100. What message are you seeing? What is the exact language? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] gem error installing 'builder'

2007-06-05 Thread Bret Pettichord
jim_matt wrote: So far, all my scripts are working without a problem. Thanks for the report. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Wait issue with file_field.set, solution

2007-06-04 Thread Bret Pettichord
into the code-base as it stands, even if people think it is a reasonable approach, but I'll submit a Jira ticket once I have something that I think will work. Thanks, Ethan On 1/10/07, Bret Pettichord [EMAIL PROTECTED] wrote: John Lolis wrote: I registered AutoItX3.dll using regsvr32 and it got

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-06-03 Thread Bret Pettichord
Paul Rogers wrote: why not put your login code into a login class, and have th test class instantiate that + 1 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Microsoft Support for Ruby

2007-06-01 Thread Bret Pettichord
Bret Pettichord wrote: Some of you may have seen some of the recent announcements from Microsoft regarding their plans to support Ruby in the .Net environment. This is an excellent post that analyzes the impact that this may have: http://martinfowler.com/bliki/RubyMicrosoft.html Here

[Wtr-general] Fox Test Runner

2007-06-01 Thread Bret Pettichord
Have any of you gotten the Fox Test Runner to work? This is used if you run your Test::Unit based tests using the -rf command line switch. I have installed fxruby-1.6.11.gem and RXRuby-1.6.11-ruby186.exe, but still get this error: no such file to load -- fox (LoadError) I'm guessing that

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-31 Thread Bret Pettichord
aidy lewis wrote: If I write this code require 'test\unit' class Login Test::Unit::TestCase end login = Login.new /code I receive 'in `initialize': wrong number of arguments (0 for 1) (ArgumentError)' You will want to review the rdoc for test-unit:

Re: [Wtr-general] maxLength Validation

2007-05-31 Thread Bret Pettichord
Paul Rogers wrote: I added the patch for watir.rb to the jira ticket thanks for the patch. I committed it to trunk. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] 'Require' Lots Of Files

2007-05-30 Thread Bret Pettichord
Fletch wrote: I have created a couple of large test suites, which use LOTS of requires require 'dir/test1' require 'dir/test2' ... require 'dir/test25' In an effort to create tidier looking code, is it possible to use something like Java would have to import, or 'require' all the files

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-30 Thread Bret Pettichord
aidy lewis wrote: #Is it possible to instantiate a class that inherits from Test::Unit Yes it is. Why do you ask? Did you try this and run into trouble? What kind of trouble? ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Microsoft Support for Ruby

2007-05-30 Thread Bret Pettichord
Some of you may have seen some of the recent announcements from Microsoft regarding their plans to support Ruby in the .Net environment. This is an excellent post that analyzes the impact that this may have: http://martinfowler.com/bliki/RubyMicrosoft.html Bret

Re: [Wtr-general] maxLength Validation

2007-05-29 Thread Bret Pettichord
Fletch wrote: I have been looking for a solution to this problem, and was wondering if anyone could give me some advice. I noticed yesterday that WATIR did not pay any attention to the maxLength of the text_field. I have tried using name.set(abc) and name.value = abc but both are still

Re: [Wtr-general] maxLength Validation

2007-05-29 Thread Bret Pettichord
Paul Rogers wrote: Im sure there is code in the set method to limit it to the max size - did it somehow get broken? It's certainly possible. We don't have any unit tests for this feature, and the code supporting it is wrapped in a begin/rescue block. So if it fails, it would fail

Re: [Wtr-general] Losing ie handle on multiple concurrencies

2007-05-27 Thread Bret Pettichord
Michael Sofaer wrote: The newest gem has fixed the problem I was having with segmentation faults, and I have been able to get up to 8 concurrent windows running, but now I am hitting a new problem when I try to get to 12. Michael, Please start a new thread for this. You replied to the

Re: [Wtr-general] want to enter URL manualy

2007-05-25 Thread Bret Pettichord
Shalini, Could you please try to include more information in your posts to this list. It can try the patience of the few people we have who are answering questions here when incomplete information is posted. In your case, you need to take another look at the stack trace you posted and then

Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-25 Thread Bret Pettichord
Bach Le wrote: I thought the two problems are related because in neither instance was watir able to find the window after it was created (I didn't look into the specifics). I did look into it some more after this post and I found out that it was Vista's security settings that caused watir

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-25 Thread Bret Pettichord
Jeff Fry wrote: Hey y'all, I'm resending these in the hopes of getting info from folks who know what watir actually does better than I do. If you are up for updating the wiki chart, great...but if you just want to email me some corrections, that'd be totally fine too. I'll happily update

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-25 Thread Bret Pettichord
Hey Charley - thanks for adding the :action and :method info. And thanks to both Charley and Bret for the kind words. I do hope the chart proves useful. In the new version of the Rdoc (not yet checked in) I have replaced lists of supported attributes for each method with a link to this

Re: [Wtr-general] ie-new-process and rubyw.exe? bug?

2007-05-24 Thread Bret Pettichord
Norm wrote: Arg, same thing on my other computer. Must be a bug in the version of watir I am using. Looking at CVS it looks like the ie-new-process has had a lot of changes... I guess I'll wait for the next gem to be released and try a new build, until then I'll have to live with the stray

Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bret Pettichord
Bach Le wrote: I've installed watir 1165 and tried using IE.new_process on Windows Vista and in both tests and irb, IE.new_process fails. It fails after creating the window when it tries to get the process id from hwnd. I have a coworker who installed this on his Vista machine and it works

Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bret Pettichord
Bach Le wrote: Bret, the problem actually exists for IE.new as well. I create a new IE window with IE.new and it creates the window but when I call the goto method to navigate to any page, a new IE window shows up and the navigation is done in that window. I've updated the ticket to

Re: [Wtr-general] ie-new-process and rubyw.exe? bug?

2007-05-24 Thread Bret Pettichord
Norm wrote: Does it have something to do with the fact that ie-new-process puts the process id to stdout? Maybe that is what is crashing it when running under rubyw.exe? I recently changed the code in trunk to stop printing the process id, so that might explain something... I'm having a

[Wtr-general] Watir Development Gem 1.5.1.1192 Released

2007-05-24 Thread Bret Pettichord
A new gem is ready for download. This is the latest pull from Subversion trunk, tagged at 1.5.1.1192. This gem has a new install process, due to a new dependency on other gems. http://wiki.openqa.org/display/WTR/Development+Builds After downloading the gem, execute the following commands in

Re: [Wtr-general] Seg-faults with 4 ie windows (hello)

2007-05-23 Thread Bret Pettichord
Chris McMahon wrote: Maybe try using threads instead of ie-new-process? Not really a good idea. If you want separate sessions you must use IE.new_process. Indeed, in trunk, i have changed the default IE.new method to actually use the IE.new_process implementation because it behaves more

Re: [Wtr-general] handling multiple IE

2007-05-23 Thread Bret Pettichord
Jungwhan Kim wrote: Thanks for the info. But let's say that the default is IE 7. But how should I start the instance of IE6 in Watir? Watir starts an IE instance like this, ie = IE.new Is there any way to tell Watir to open a specific version of IE after multiple versions of IE is

Re: [Wtr-general] ie-new-process and rubyw.exe? bug?

2007-05-23 Thread Bret Pettichord
Norm wrote: Using ruby 1.8.5 and watir 1.5.1.1164. When I use the following code the script stops after opening the browser and doesn't set the text field and move on with the script, can't figure out why!: === require 'watir' require

Re: [Wtr-general] How to clear cache from within watir script?

2007-05-23 Thread Bret Pettichord
Bill Agee wrote: Give the script from this page a try: http://rubyforge.org/snippet/detail.php?type=snippetid=26 For a quick demo just copy/paste the whole thing into a file, name it del_cache.rb, and run it. It always worked fine for me on XP SP2. Thanks for the tip!

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-05-23 Thread Bret Pettichord
SHALINI GUPTA wrote: In my project i want to click a link that is variable.i.e user dependent.But always it comes after an image... so is there any way to click a link just next to an image. please help.Its very urgent There is an little known feature in 1.5 that supports this:

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-22 Thread Bret Pettichord
Jeff Fry wrote: I tried commenting out the empty class in changes.rb as an experiment. I still see changes.rb in Files (as I'd hoped) and no longer see it under Classes (as I'd also hoped). Is there something I'm missing here, or is it alright for me to remove the empty class from

Re: [Wtr-general] How to clear cache from within watir script?

2007-05-22 Thread Bret Pettichord
Ruben wrote: Since no one is replying I'll update my status on the current issue. So for some reason the cookie/cache watir functions were not working properly for me but when I tried the same thing on my other computer with Watir 1.5.1.1166 they started to work, somewhat. For cookies, it

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Bret Pettichord
Walter Kruse wrote: require 'watir' include Watir (it's magic anyway, it won't hurt) ie = IE.new (let people see a blank browser) ie.goto(http://www.google.com http://www.google.com) Show people the steps and show them later how to abbreviate it with a small explanation of the Ruby idiom.

Re: [Wtr-general] Watir wiki

2007-05-18 Thread Bret Pettichord
Željko Filipin wrote: I have been browsing Watir Wiki and http://wiki.openqa.org/display/WTR/Watir+Committers has error message Error formatting macro: userlister: java.lang.NullPointerException. You can report this to Patrick if you like. This used to work. Bret

Re: [Wtr-general] :beforeText and :afterText

2007-05-18 Thread Bret Pettichord
Jeff Fry wrote: Cool. In that case, I will not only remove the example I added, I will also remove it anywhere it's listed as an allowed 'how' value. Here is the jira ticket. http://jira.openqa.org/browse/WTR-154 ___ Wtr-general mailing list

Re: [Wtr-general] Watir wiki

2007-05-18 Thread Bret Pettichord
Željko Filipin wrote: Why is Project Home child of FAQ at Watir wiki? Is this a bug? Probably. Feel free to fix it. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

  1   2   3   4   5   6   7   8   9   10   >