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 =
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
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
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:
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
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
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
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
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
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 --
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
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
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:
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
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
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:
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:
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
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,
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
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
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
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
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
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
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/
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
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
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
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
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
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
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,
33 matches
Mail list logo