Re: [wtr-general] Donate to Watir

2011-06-23 Thread Željko Filipin
On Wed, Jun 22, 2011 at 5:15 PM, Lisa Wright lisa.wrigh...@gmail.com
wrote:
 Just started to use Watirhappy to donate to the cause! :)

Lisa,

Thanks for the donation! :)

Željko

-- 
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


Re: [wtr-general] Is Firewatir Dead?

2011-06-23 Thread Željko Filipin
On Wed, Jun 22, 2011 at 11:22 PM, Michael mmcwill...@gmail.com wrote:
 Does that mean Firewatir is dead?

Not dead yet, but it will be soon. If you need to drive Firefox 4 or 5, use
watir-webdriver gem. In addition to driving all versions of Firefox, it can
drive IE, Chrome and I think maybe even Opera. If I remember correctly,
webdriver will be able to drive Safari soon too.

Željko
--
watir.com - community manager
watir.com/book - author
watirpodcast.com - host

-- 
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] How to make the scripts more effective at slow connection?

2011-06-23 Thread Amit Bobade
Dear All:

I am using Watir for automation scripts. But sometimes the scripts do not
work properly due to slow internet connection.
Actually When I was giving demo to my team members then it happened.

Also at fast connection, sometimes the scripts does not get loaded and
execution gets stopped due to some reasons.

Please could you provide some solutions regarding to the same.  Please tell
me how to make scripts more effective.

-- 
Thanks and Regards,
Amit

-- 
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] Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-23 Thread Charles Richard
Hi,

I've been trying for almost a month now to get my watir scripts to run
unattended on a windows 2003 server machine.  They run fine if I'm logged
in.  It seems from what I've read that the best way to do this is to use
Cruise Control.

The only build tool i know is Maven and my knowledge is limited in that
area.  So I'm looking for a beginner tutorial to understand how i would set
up Cruise Control to run my watir scripts unattended.  I find it a bit weird
that i need a build tool to do this because I don't really need my Watir
scripts to return any results as they simply send an email to let me know if
a certain area of our site is not working anymore.  But if learning how to
do this helps me to get this working, I'll try to put some time into it.

So any help would be appreciated on the above!

Thank you!

Charles

-- 
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: Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-23 Thread Hugh McGowan
We use Hudson/Jenkins for this and have been extremely pleased with
the solution. It's easy to install, use, has great output. Scaling and
adding additional slaves to run tests is a snap. It's got support for
most of the major version control systems and you can use it to run
scripts directly or trigger rake tasks. (It's a build tool too :)

Thanks!
Hugh

-- 
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


Re: [wtr-general] Re: Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-23 Thread Charles Richard
Hi Hugh,

Any chance you could give me a quick overhead of how that would work with
Hudson.  We use Hudson here so it would be less of a learning curve but we
don't run any Junit tests or anything like that yet so I've got no
experience there.  Also would i need to use rake as well?

Cheers and thank you,
Charles

On Thu, Jun 23, 2011 at 9:53 AM, Hugh McGowan colinsda...@gmail.com wrote:

 We use Hudson/Jenkins for this and have been extremely pleased with
 the solution. It's easy to install, use, has great output. Scaling and
 adding additional slaves to run tests is a snap. It's got support for
 most of the major version control systems and you can use it to run
 scripts directly or trigger rake tasks. (It's a build tool too :)

 Thanks!
 Hugh

 --
 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.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com


-- 
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: About Watir 1.9.0, RAutomation and AutoIt

2011-06-23 Thread Super Kevy
Yes, very beneficial, you rock!

Željko any place in the Watir documentation where this can be linked
and synched :)


On Jun 22, 10:30 am, Jarmo Pertman jarm...@gmail.com wrote:
 Hi!

 I've just written a post about Watir 1.9.0, RAutomation and AutoIt.
 Maybe it helps someone to make their upgrade process a little 
 easier:http://www.itreallymatters.net/post/6791652065/viva-la-rautomation

 Jarmo

-- 
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


Re: [wtr-general] Re: About Watir 1.9.0, RAutomation and AutoIt

2011-06-23 Thread Željko Filipin
On Thu, Jun 23, 2011 at 3:50 PM, Super Kevy kpe...@scholarshipamerica.org
wrote:
 Željko any place in the Watir documentation where this can be linked
 and synched :)

Feel free to link it anywhere. :) Let me know if you need help.

Željko
--
watir.com - community manager
watir.com/book - author
watirpodcast.com - host

-- 
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


Re: [wtr-general] Re: href in WebDriver no longer available?

2011-06-23 Thread Jari Bakken

 I'd suggest it might be a good idea to perhaps add a bit more
 descriptive text to that error  to make it a bit more friendly?

I'll pass this suggestion along to Jim who maintains the IE driver.

-- 
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: set (variable) issue

2011-06-23 Thread JohnH
Hi orde,

That was one of the first things I tried. It didn't work the first
time, but it was my mistake. It's working fine now with converting
into the string.

I've found out what's with the changing of the form's position - the
scrolbar gets activated, which is weird.

Thanks

On 22 iun., 19:52, orde ohil...@gmail.com wrote:
 Are you converting the amount var into a string before passing it to
 the .setmethod?

 orde

 On Jun 22, 7:45 am, JohnH ictodo...@gmail.com wrote:







  I'm reading an integer value from an xls. file and save it in a
 variablecalled amount.

  Afterwards, I'm trying to send thatvariablevalue into a text field
  from a website, but I'm having some problems there.

  Here is the code:
  begin
  sleep 1
  counter = counter + 1
  browser.text_field(:name, name).set(amount)
  rescue
          if counter  10
          retry
          end
  end

  If I use a direct value (like 5) instead or the amountvariableit
  all works fine, but when trying in this form the form where the text
  field starts to change its position in the page :O

  I've tried as well with .value(variable) instead of .set(variable) but
  in this case nothing happens - the value is not sent.

-- 
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: set (variable) issue

2011-06-23 Thread JohnH
Hi orde,

That was one of the first things I tried. It didn't work the first
time, but it was my mistake. It's working fine now with converting
into the string.

I've found out what's with the changing of the form's position - the
scrolbar gets activated, which is weird.

Thanks

On 22 iun., 19:52, orde ohil...@gmail.com wrote:
 Are you converting the amount var into a string before passing it to
 the .setmethod?

 orde

 On Jun 22, 7:45 am, JohnH ictodo...@gmail.com wrote:







  I'm reading an integer value from an xls. file and save it in a
 variablecalled amount.

  Afterwards, I'm trying to send thatvariablevalue into a text field
  from a website, but I'm having some problems there.

  Here is the code:
  begin
  sleep 1
  counter = counter + 1
  browser.text_field(:name, name).set(amount)
  rescue
          if counter  10
          retry
          end
  end

  If I use a direct value (like 5) instead or the amountvariableit
  all works fine, but when trying in this form the form where the text
  field starts to change its position in the page :O

  I've tried as well with .value(variable) instead of .set(variable) but
  in this case nothing happens - the value is not sent.

-- 
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: Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-23 Thread Hugh McGowan
On the machine you want to run tests through, add it as a node to
Hudson (we use java web start). The label you give it is how you'll
identify the jobs it can service. Login to that node (eg remote
desktop) and bring up the Hudson site in the browser on that machine.
Find the node you created and hit the Launch button - that starts up
the slave on that node and you should see a little dialog that you can
minimize (you may need to install a JRE on the machine).

Now create a job for the script you want to run and set the 'Restrict
where the job can be run' and add that label you defined for the node.
Set up the source control so it can check out your latest test code
and then configure how you're going to build it. You can use a windows
command and call the script directly. I'd start with just getting what
you have working (you don't need to use rake and you can always do
that later). You can manually start the build to make sure it works
for you and once you have things running you can edit the job and
trigger it to run nightly, on source control triggers, etc.

You might need to get user permissions to do some of this, depending
on how your Hudson site is set up. Also there are quite a few plugins
and you may have to install some, depending on what Hudson currently
has configured. There are ones that will support different source
control systems (git, svn, cvs), rake, etc.

Hugh

-- 
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


Re: [wtr-general] Re: Watir 1.8.7 how to use cruisecontrol for an unattended job

2011-06-23 Thread Charles Richard
Thank you!

Have a great day!

Cheers,
Charles

On Thu, Jun 23, 2011 at 1:13 PM, Hugh McGowan colinsda...@gmail.com wrote:

 On the machine you want to run tests through, add it as a node to
 Hudson (we use java web start). The label you give it is how you'll
 identify the jobs it can service. Login to that node (eg remote
 desktop) and bring up the Hudson site in the browser on that machine.
 Find the node you created and hit the Launch button - that starts up
 the slave on that node and you should see a little dialog that you can
 minimize (you may need to install a JRE on the machine).

 Now create a job for the script you want to run and set the 'Restrict
 where the job can be run' and add that label you defined for the node.
 Set up the source control so it can check out your latest test code
 and then configure how you're going to build it. You can use a windows
 command and call the script directly. I'd start with just getting what
 you have working (you don't need to use rake and you can always do
 that later). You can manually start the build to make sure it works
 for you and once you have things running you can edit the job and
 trigger it to run nightly, on source control triggers, etc.

 You might need to get user permissions to do some of this, depending
 on how your Hudson site is set up. Also there are quite a few plugins
 and you may have to install some, depending on what Hudson currently
 has configured. There are ones that will support different source
 control systems (git, svn, cvs), rake, etc.

 Hugh

 --
 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.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com


-- 
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] link activates popup blocker

2011-06-23 Thread Anne
I have this link that acts differently when clicked through my
automation and when clicked manually.
So, when I click it manually, it brings up a modeless dialog that I
can examine through firebug (I never get a warning from the pop-up
blocker, which is always turned on).

When I click it through my automation, it activates the pop-up blocker
-- I get a warning and the popup is not opened.  If I turn off the pop-
up blocker, the dialog is never opened.

The html for the link:
p class=indented
 Email:
 a onclick=openEmailForm('media'); return false;
href=#me...@xyz.com/a
 br
/p

the code I use to click the link:
if @browser.link(:text, me...@xyz.com).exists?
 puts me...@xyz.com link exists
 @browser.link(:text, me...@xyz.com).click_no_wait
 puts clicked the link
 it gets this far and the popup blocker shows it's warning
 if the popup blocker is turned off, it just hangs here
 if ! @browser.javascript_dialog.button('Cancel').click
  puts me...@uptodate.com Dialog was not seen
  errorFound = 'true'
  if errorFound then errorCount += 1 end
 end #Print Dialog
end #Close Popup


I tried this using both click and click_no_wait.
I'm not sure if I'm referencing the link correctly, but I tried using
(:text, #) and that didn't work.

Anne

-- 
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: About Watir 1.9.0, RAutomation and AutoIt

2011-06-23 Thread Darryl Brown
I'm planning to fold the applicable parts of this into the popup page
updates on the wiki.

Darryl

On Jun 23, 9:54 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Thu, Jun 23, 2011 at 3:50 PM, Super Kevy kpe...@scholarshipamerica.org
 wrote:

  Željko any place in the Watir documentation where this can be linked
  and synched :)

 Feel free to link it anywhere. :) Let me know if you need help.

 Željko
 --
 watir.com - community manager
 watir.com/book - author
 watirpodcast.com - host

-- 
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