[wtr-general] Excel connect/disconnect methods

2009-02-23 Thread magnujf
Hello, I am tryning to make my Watir data-driven test automation script more object oriented and thus more reusabel across applications. Doing this I want to make two methods, one to connect, and one to disconnect Excel: def connect() excel = WIN32OLE::new(excel.Application) workbook =

[wtr-general] How do I load/require files from my run file?

2009-02-23 Thread Mari
I'm a beginner when it comes to programming so I have a problem now... I've used an example I found on a watir page called Example Logging (pasted at the end of this message). It runs two tests, test_a_simplesearch and test_b_googlenews, and also logs the results with a file called

[wtr-general] how to access li in div tag

2009-02-23 Thread Narendra Gollapilli
Hi, I m new to WATIR in the below code need to click on Update. We are able to access div tag *footer* like $s = @ie_ref.div(:id, footer), after that m unable to catch the click on *Update*. div id=widgetFooter class=clearfloat div id=footer center ul li a onclick=onClickEditProfile() img

[wtr-general] Re: Hiding the browser

2009-02-23 Thread Jason Shelton
Is there a way to hide popups too? Your recommendation worked, but when a popup is prompted, the browser is no longer hidden. Thanks in advance. - Shelton Date: Sat, 21 Feb 2009 12:39:10 +0800 Subject: [wtr-general] Re: Hiding the browser From: cjq@gmail.com To:

[wtr-general] Re: FireWatir and unicode IDs/input, etc... Works with Watir/IE...

2009-02-23 Thread John Kolokotronis
For anyone interested, I did get this to work after all - I needed to add these two lines to my spec_helper.rb (or whatever setup file you may be using): $KCODE = u WIN32OLE.codepage = WIN32OLE::CP_UTF8 Firefox then works with Japanese, German, etc - though some things are a bit more limited

[wtr-general] Re: Does Watir work with ruby 1.9.1

2009-02-23 Thread infoDrone
I have had success using Watir with 1.8.7, but I haven't gotten around to trying it with 1.9 yet. On Feb 20, 10:16 am, Bret Pettichord b...@pettichord.com wrote: I'm not even sure if Watir works with Ruby 1.8.7. Does any one know? Bret Karthikeyan K wrote: Since Ruby1.9.1 is out, I tried

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-23 Thread Charley Baker
Hey Marekj, Good call. I think that may be it, if win32-api is updated before updating the gems version to 1.3.1. -c On Sun, Feb 22, 2009 at 7:21 PM, marekj marekj@gmail.com wrote: Just to throw 2 cents. After installing Ruby I always upgrade gems first before installing any other

[wtr-general] Re: how to access elements on Widgets.

2009-02-23 Thread Charley Baker
We need more information if you want some help - the html for your controls, a snippet of your script and any errors. If you send this, you'll be more likely to get help from the group. Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA

[wtr-general] Re: Installing Watir

2009-02-23 Thread Jim Matthews
If you do the one click Ruby install and do not do silent mode, there is a Choose Components screen that allows you to select SciTE and select Enable RubyGems. Jim On Feb 23, 11:17 am, Darin Duphorn dduph...@redbrickhealth.com wrote: I didn't see that option, but I have to install on everyones

[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Smita Godbole
Hi Tiffany, Thank you very much. One more question I have, is there any test that can verify the Test::Unit installation? I tried running core_test.rb file and got following error i.e. C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load --

[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Smita Godbole
Actually it is there. I have total 3 environment variable Path =C:\ruby\bin ; PATHEXT = RB ;RBW and RUBYOPT = rubygems Thanks Smita On Mon, Feb 23, 2009 at 12:45 PM, Jim Matthews jim_m...@swbell.net wrote: Usually when you get a load error on a gem that really is installed, it is because

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-23 Thread Moochie
I'm getting this same error. I'm also unable to gems update because I get the following. Error Failed to build gem native extension rake blah blah blah Gem::manage_gems is deprecated and will be removed on or after March 2009 I've search around to fix this, but I'm unable to. if key in

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-23 Thread Charley Baker
Something is trying to compile the c libraries. How did you install Ruby? Which version do you have of Ruby and rubygems? Command line: ruby -v gem -v To upgrade rubygems you're typing gem update --system? What's the output from gem environment Charley Baker blog:

[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Jim Matthews
That is strange. Test::Unit should be automatically installed with the Ruby installation. When I have seen the LoadError problem, it has been because of RUBYOPT not being defined. One thing I noticed, your rubygems did not have the hyphen in front of it and that is got split on the line I

[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Smita Godbole
Thanks Jim. It is there. Its showing RUBYOPT = -rubygems Smita On Mon, Feb 23, 2009 at 1:19 PM, Jim Matthews jim_m...@swbell.net wrote: That is strange. Test::Unit should be automatically installed with the Ruby installation. When I have seen the LoadError problem, it has been because of

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-23 Thread Darin Duphorn
I missed the other dash when I typed this. What is the irc channel? Thanks, From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Charley Baker Sent: Monday, February 23, 2009 12:33 PM To:

[wtr-general] Re: Watir -- Methods

2009-02-23 Thread Charley Baker
If you're trying to run the unit tests with Watir 1.6.2 you won't be able to unless you pull down the tree from git. http://wiki.openqa.org/display/WTR/Run+the+Watir+Unit+Tests Note the link to: http://wiki.openqa.org/display/WTR/Running+Unit+Tests+in+Development Charley Baker blog:

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-23 Thread Charley Baker
http://wiki.openqa.org/display/WTR/The+IRC+Channel Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Mon, Feb 23, 2009 at 11:36 AM, Darin Duphorn dduph...@redbrickhealth.com wrote: I missed the other

[wtr-general] Re: msvcr80-ruby18.dll was not found error troubles

2009-02-23 Thread Charley Baker
This is your problem: Successfully installed win32-api-1.4.0-x86-mswin32-80 Are you using the latest RCs for the one click installer? Any chance you can also jump on irc? Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect,

[wtr-general] Send_Keys() and FireWatir

2009-02-23 Thread Bill Mosteller
Running a script that works nicely with Watir, I got the following nasty surprise: C:/QA/Orionfw.rb:420: undefined method `send_keys' for #FireWatir::Firefox:0x34 82ee0 (NoMethodError) is SendKeys() not available with FireWatir? Thanks. Bill Mosteller Eloqua

[wtr-general] Array Elements

2009-02-23 Thread Jason Shelton
All, I am reading an xml file into an array of lines(arr[]). I want to look at each individual line (element) of the array, and determine if the element contains a certain block of text. Is there a contains_text method, or something similiar, for array elements? I want to find all

[wtr-general] Re: Array Elements

2009-02-23 Thread Ravi
second_array=[] ; first_array.each{|a| second_array a if a =~ / expected_text/} On Feb 23, 3:53 pm, Jason Shelton jas.shel...@hotmail.com wrote: All, I am reading an xml file into an array of lines(arr[]). I want to look at each individual line (element) of the array, and determine if

[wtr-general] 2 more days for early registration

2009-02-23 Thread Pete Dignan
If you are planning to attend the Watir training in Austin March 25-26, remember that the early registration discount expires on 2/25. http://marchaustinwatirtraining.eventbrite.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Watir training near Portland, Oregon

2009-02-23 Thread Pete Dignan
Thanks to our friends at Transcore (tip of the hat to Keith Hamilton), Bret Pettichord will be delivering Watir training April 16-17, 2009 in Beaverton, Oregon (just outside Portland). This will cover Watir and the new WatirCraft framework, so you won't want to miss it if you are in the Pacific

[wtr-general] Re: Watir training near Portland, Oregon

2009-02-23 Thread George
I also work at TransCore...I'm definitely looking forward to this! On Feb 23, 3:00 pm, Pete Dignan p...@watircraft.com wrote: Thanks to our friends at Transcore (tip of the hat to Keith Hamilton), Bret Pettichord will be delivering Watir training April 16-17, 2009 in Beaverton, Oregon (just

[wtr-general] Re: watirrecorder++

2009-02-23 Thread Zhimin
Try iTest2/Watir recorder, it is a Firefox add-on. http://www.itest2.com/downloads.html or https://addons.mozilla.org/en-US/firefox/addon/9760 Cheers, Zhimin On Feb 24, 5:45 am, tarun parmar tarun...@gmail.com wrote: Hi, I just installed watir but i didnt know that it is not a recorder/

[wtr-general] Re: how to access elements on Widgets.

2009-02-23 Thread Narendra Gollapilli
Thanks Charley, the below code within We are able to access div tag *footer* like $s = @ie_ref.div(:id, footer), after that m unable to catch the click on *Update*. *html code:* div id=socialsiteWidgetdiv id=widgetBody class=clearfloat /div div id=widgetFooter class=clearfloat div id=footer

[wtr-general] Does watir::IE.attach() :hwnd support embedded browsers ?

2009-02-23 Thread basu
I want to know whether the attach() method supports access to the browser embedded in a windows applications (Ex: Internet Explorer_Server1 control embedded in the winamp player) , if not could some one provide me the inputs on how to achieve this Thanks, Basu

[wtr-general] Re: watirrecorder++

2009-02-23 Thread tarun parmar
I installed the itest2recorder add-on and checked this link as well http://www.itest2.com/downloads.html but it only has trial version of itest2 ..so full version is not available? actually I got little bit confused.if you can tell me or send me a link that how can I use itest2 and

[wtr-general] Re: watirrecorder++

2009-02-23 Thread Manish Sapariya
Isn't FF recorder plugin open source? Thanks, Manish Zhimin wrote: Try iTest2/Watir recorder, it is a Firefox add-on. http://www.itest2.com/downloads.html or https://addons.mozilla.org/en-US/firefox/addon/9760 Cheers, Zhimin On Feb 24, 5:45 am, tarun parmar tarun...@gmail.com

[wtr-general] Any Opening on Watir..?

2009-02-23 Thread Chethan
Hi Friends, If any Company got opening on automation with Watir, Pls let me know. I have good exposure in Watir tool. You can contact me on chethan2...@gmail.clom. Thanks Regards, Chethan --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: Unable to open IE window

2009-02-23 Thread wesley chen
Hi, All, I met this kind of problem recently tool. Following Tony's advise, I remove Ruby1.8.6, then I reinstall by: gem update --system gem install watir After successfully, I restart my system, run command regsvr32 C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\AutoItX3.dll Anything goes

[wtr-general] Re: Hiding the browser

2009-02-23 Thread wesley chen
There are many kinds of pop up window. Which kind would you like to forbid? You can search on the net about how to avoid the pop up by setting in Internet - Option. You many make a summary about it. That would be helpful to all of us. Thanks. Wesley Chen. On Mon, Feb 23, 2009 at 10:27 PM,