[wtr-general] Re: set or clear Check box with a variable

2011-05-11 Thread Richard Wijdenes
Darryl

I use this solution:

$br.checkbox(:id, includeSponsor).set if study[includeSponsor] ==
true

R.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Entering UTF8 Characters

2010-11-10 Thread Richard Wijdenes
I've also ran into this problem. I've started working on my
testscripts using IE and reading data form a spreadsheet. This wasn't
functioning for special chars untill i've added require 'win32ole'
WIN32OLE.codepage = WIN32OLE::CP_UTF8

But when i tried to get the same scripts running in firefox, the
described problem occured. I didn't find a solution yet.

So my only advice to you is to use IE

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Need a sample code to import test data from Excel sheet

2009-09-08 Thread Richard Wijdenes

I´ve learned a lot from this example:

http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Database+Verifications
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir Logo Refresh Competition

2009-09-08 Thread Richard Wijdenes

I've done a posting in a creative forum (for sigs in a game forum).
Perhaps this will lead to some more logo's to choose from.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-03 Thread Richard Wijdenes

Cristoph,

take a look at Webmetrics RIA script recorder.
http://www2.webmetrics.com/downloads/scriptrecorder/start.htm

I found out by looking at http://delicious.com/zeljko.filipin/watir+recorder,
thanks again Zeljko!

Grtz, R.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: ocra couldn't work in loop for watir

2009-08-03 Thread Richard Wijdenes

Hey Alex,

First of all, I think it is a very strange peace of code. You're not
checking anything, just clicking etc.
Why 1 times? Do you want to use Watir as a performance tool?

Furthermore, google does not like these scripts. You (or your IP
number) will probably get on a blacklist if you do this often.

Ocra first tries to carry out the entire script before making the exe
file. So why don't you use a commandline argument to start your
script?
So if you want it to execute 10 times, you type alex.exe (or just
alex) 10.

Grtz.R.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: (Fire)Watir Code Generator?

2009-08-03 Thread Richard Wijdenes

Cristoph,

Yes, I'm using it. Mostly for pages with a lot of fields. After
recording it i copy-paste it in Scite, and adjust it manually.

Are you using Linux? I'm using Ubuntu 9.04, but i'm not very pleased
by the speed of firewatir and firefox.

Grtz. R.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir like test tool for windows-applications

2009-06-19 Thread Richard Wijdenes

Zhimin,

thank you for the info! It looks promising

Richard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Watir like test tool for windows-applications

2009-06-17 Thread Richard Wijdenes

Hi there,

does anybody use Open Source Test Tools for normal applications?

With normal I mean non-web-applications.
Main Platform: Windows. Cross-platform (Ubuntu-linux/windows) would be
nice.

I would like the ease of use and scripting functionality of Watir and
RUBY.

Grtz.R.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: require function is not working

2009-06-13 Thread Richard Wijdenes

When I see this code

require 'testcase_01'
require 'testcase_02'

I automatically assume it should be:

require 'testcase_01.rb'
require 'testcase_02.rb'

Maybe I'm oversimplifying your problem, but I've made this mistake
myself a few times.

Grtz.
Richard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: 32-bit linux firefox3 jssh extension troubles

2009-06-10 Thread Richard Wijdenes

try the jssh extension from this site:
http://www.valibuk.net/2008/11/jssh-firefox-30-with-optional-port-number/

It worked fine for me with FF 3 (I'm on Ubuntu 9.04)

grtz,
Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Saving a webpage - Twitter question from Animesh1988

2009-06-04 Thread Richard Wijdenes

Hi all,

Saving the contents of a webpage can be done as follows

require 'watir'
browser = Watir::IE.new

browser.goto(http://www.google.com;)

open('filename', 'w') { |f| f.puts browser.html }

grtz,
Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Roo error on Ubuntu 9.04

2009-05-17 Thread Richard Wijdenes

Hi all,

As stated in my opening post in this thread, I was trying to run a
datadriven test like the one by Tiffany Fodor on
http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Database+Verifications
but then on Ubuntu Linux 9.04 with FireFox, Firewatir and Openoffice
Calc.

Allthough a bit slow, finally it worked.

What i've done is the following:

After installing ruby
sudo apt-get install ruby

i've installed the development version of Ruby
sudo apt-get install ruby1.8-dev

This is neccessary for roo to be installed properly, but before
installing the roo and firewatir gems first rubygems has to be
installed
sudo apt-get install rubygems

Next install firewatir
sudo gem install firewatir

instal roo (for accesing spreadsheets)
sudo gem install roo

because of the errors mentioned in opening post i've edited the roo.rb
file. It is located at /var/lib/gems/1.8/gems/roo-1.2.3/lib
comment out the line:
require 'roo/google'

In order to get FireWatir running on Firefox 3.0 i've had to find the
correct jssh-plug-in, and found it on:
http://www.valibuk.net/2008/11/jssh-firefox-30-with-optional-port-number/

I your ruby code you have start with:
require 'rubygems'
before doing the
require 'firewatir'
require 'roo' etc.

Because of the rudimentary interface in Roo i've couldn't work out
the examples using the hash datatype.
I will try to build an interface for ruby/roo so it is possible to use
the functions like:
getRowRecords
getColumnRecords
getHash

I will keep you informed.

Grtz, and thanx for the help!
Richard Wijdenes

On 14 mei, 00:21, Richard Wijdenes richard.wijde...@gmail.com wrote:
 I've added require 'open-uri'   -- no result

 I've done sudo apt-get install build-essential -- no result

 I've hacked roo.rb and commented out  require 'roo/google'  --
 succes!

 I couldn't test it completely due to time-issues :(  but it looks
 good.

 I will report my findings end of the week.

 thanx for helping so far!

 On 13 mei, 16:50, Charley Baker charley.ba...@gmail.com wrote:

  It looks like you don't have the developer tools installed on Ubuntu, it's
  failing to find them while attempting to build the hpricot binary. To
  install developer tools:

  sudo apt-get install build-essential

  *
  *Charley Baker
  blog:http://blog.charleybaker.org/
  Lead Developer, Watir,http://wtr.rubyforge.org
  QA Architect, Gap Inc Direct

  On Tue, May 12, 2009 at 4:22 PM, Richard Wijdenes 

  richard.wijde...@gmail.com wrote:

   Hi all,

   After installing ruby, rubygems, firewatir, which all seems working
   fine, i would like to create some datadriven scripts with roo (to
   access spreadsheets).

   But when i tried to install roo sudo gem install roo i got the
   following:

   
   sudo gem install roo
   [sudo] password for yellowbug:
   Building native extensions.  This could take a while...
   ERROR:  Error installing roo:
          ERROR: Failed to build gem native extension.

   /usr/bin/ruby1.8 extconf.rb install roo
   extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
          from extconf.rb:1

   Gem files will remain installed in /var/lib/gems/1.8/gems/
   hpricot-0.8.1 for inspection.
   Results logged to /var/lib/gems/1.8/gems/hpricot-0.8.1/ext/
   hpricot_scan/gem_make.out

   

   On this link i found out that installing ruby on Linux has some
   issues, not everything is included in the default ruby install.

  http://blogs.law.harvard.edu/hoanga/2006/10/27/fixing-mkmf-load-error...

   So after sudo apt-get install ruby1.8-dev roo installed properly.

   But the happy-happy-joy-joy was short, trying the roo examples i've
   got the following:

   
   irb(main):001:0 require 'rubygems'
   = true
   irb(main):002:0 require 'roo'
   LoadError: no such file to load -- net/https
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
   `gem_original_require'
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
          from /var/lib/gems/1.8/gems/GData-0.0.4/lib/gdata/base.rb:2
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
   `gem_original_require'
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
          from /var/lib/gems/1.8/gems/GData-0.0.4/lib/gdata/spreadsheet.rb:1
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
   `gem_original_require'
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
          from /var/lib/gems/1.8/gems/roo-1.2.3/lib/roo/google.rb:1
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
   `gem_original_require'
          from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
          from /var/lib/gems/1.8/gems/roo-1.2.3

[wtr-general] Ruby and Watir on Vista

2009-05-17 Thread Richard Wijdenes

Hi all,

I'm running Ruby and Watir on Vista and that is going well, but i've
one problem:

In command-line mode ruby (and therefore also watir) isn't giving any
output. e.g. ruby --version results in a popup asking if I trust
this program and then shortly - very very shortly - another popup
shows with some output, but because it disappears so quickly its
unreadable.

Did anybody ran in to this issue and found a solution?

Grtz,
Richard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Ruby and Watir on Vista

2009-05-17 Thread Richard Wijdenes

Thanks Al,

That works fine!

at least i know my ruby version now :-)
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

Grtz.
Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Roo error on Ubuntu 9.04

2009-05-13 Thread Richard Wijdenes

I've added require 'open-uri'   -- no result

I've done sudo apt-get install build-essential -- no result

I've hacked roo.rb and commented out  require 'roo/google'  --
succes!

I couldn't test it completely due to time-issues :(  but it looks
good.

I will report my findings end of the week.

thanx for helping so far!

On 13 mei, 16:50, Charley Baker charley.ba...@gmail.com wrote:
 It looks like you don't have the developer tools installed on Ubuntu, it's
 failing to find them while attempting to build the hpricot binary. To
 install developer tools:

 sudo apt-get install build-essential

 *
 *Charley Baker
 blog:http://blog.charleybaker.org/
 Lead Developer, Watir,http://wtr.rubyforge.org
 QA Architect, Gap Inc Direct

 On Tue, May 12, 2009 at 4:22 PM, Richard Wijdenes 

 richard.wijde...@gmail.com wrote:

  Hi all,

  After installing ruby, rubygems, firewatir, which all seems working
  fine, i would like to create some datadriven scripts with roo (to
  access spreadsheets).

  But when i tried to install roo sudo gem install roo i got the
  following:

  
  sudo gem install roo
  [sudo] password for yellowbug:
  Building native extensions.  This could take a while...
  ERROR:  Error installing roo:
         ERROR: Failed to build gem native extension.

  /usr/bin/ruby1.8 extconf.rb install roo
  extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
         from extconf.rb:1

  Gem files will remain installed in /var/lib/gems/1.8/gems/
  hpricot-0.8.1 for inspection.
  Results logged to /var/lib/gems/1.8/gems/hpricot-0.8.1/ext/
  hpricot_scan/gem_make.out

  

  On this link i found out that installing ruby on Linux has some
  issues, not everything is included in the default ruby install.

 http://blogs.law.harvard.edu/hoanga/2006/10/27/fixing-mkmf-load-error...

  So after sudo apt-get install ruby1.8-dev roo installed properly.

  But the happy-happy-joy-joy was short, trying the roo examples i've
  got the following:

  
  irb(main):001:0 require 'rubygems'
  = true
  irb(main):002:0 require 'roo'
  LoadError: no such file to load -- net/https
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
  `gem_original_require'
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
         from /var/lib/gems/1.8/gems/GData-0.0.4/lib/gdata/base.rb:2
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
  `gem_original_require'
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
         from /var/lib/gems/1.8/gems/GData-0.0.4/lib/gdata/spreadsheet.rb:1
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
  `gem_original_require'
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
         from /var/lib/gems/1.8/gems/roo-1.2.3/lib/roo/google.rb:1
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
  `gem_original_require'
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
         from /var/lib/gems/1.8/gems/roo-1.2.3/lib/roo.rb:10
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
  `gem_original_require'
         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
         from (irb):2

  

  Help wanted!
  Or does somebody know another trick to access OpenOffice Calc sheets
  on Linux?

  Grtz. Richard Wijdenes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Roo error on Ubuntu 9.04

2009-05-12 Thread Richard Wijdenes

Hi all,

After installing ruby, rubygems, firewatir, which all seems working
fine, i would like to create some datadriven scripts with roo (to
access spreadsheets).

But when i tried to install roo sudo gem install roo i got the
following:

sudo gem install roo
[sudo] password for yellowbug:
Building native extensions.  This could take a while...
ERROR:  Error installing roo:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install roo
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1


Gem files will remain installed in /var/lib/gems/1.8/gems/
hpricot-0.8.1 for inspection.
Results logged to /var/lib/gems/1.8/gems/hpricot-0.8.1/ext/
hpricot_scan/gem_make.out


On this link i found out that installing ruby on Linux has some
issues, not everything is included in the default ruby install.

http://blogs.law.harvard.edu/hoanga/2006/10/27/fixing-mkmf-load-error-ruby-in-ubuntu/comment-page-1/

So after sudo apt-get install ruby1.8-dev roo installed properly.

But the happy-happy-joy-joy was short, trying the roo examples i've
got the following:

irb(main):001:0 require 'rubygems'
= true
irb(main):002:0 require 'roo'
LoadError: no such file to load -- net/https
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/GData-0.0.4/lib/gdata/base.rb:2
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/GData-0.0.4/lib/gdata/spreadsheet.rb:1
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/roo-1.2.3/lib/roo/google.rb:1
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/roo-1.2.3/lib/roo.rb:10
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
from (irb):2


Help wanted!
Or does somebody know another trick to access OpenOffice Calc sheets
on Linux?

Grtz. Richard Wijdenes


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Super-special Guest Star on Watir Podcast

2009-04-10 Thread Richard Wijdenes

Please ask his brother Marko Filipin if he can mail me the guitar tab
for the G Blues Train, the Intro Zeljko used for the Bret Pettichord
interview :-)

I would like to know what frameworks / tools / gems Zeljko uses apart
from standard Watir  Ruby What's his opinion about Rspec and
Cucumber?

Greetings from Almelo, Holland
Richard Wijdenes

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---