Nicola Kennedy wrote:
I want the code to do the following things:
1. Check on page for a link.
2. If link not there, press Next page
3. If link there, click on it.
4. When next page reached (if step 2 followed), repeat the action of looking
for link/clicking next.
Here is one
Hi,
Am v new to Watir/Ruby, so probably a simple question for someone.
I'm trying to put a loop in a script where it checks for a link on a page, if
the link isn't there, it clicks on the next page button, looks for the link
again, and the process repeats until it finds the link, and then
I'm trying to put a loop in a script where it checks for a link on a page, if
the link isn't there, it clicks on the next page button, looks for the link
again, and the process repeats until it finds the link, and then clicks on it.
It'd be easier to help if you would post a) the HTML
I'm not sure how new 'wait_until' is, but if you have it do
wait_until(time_to_wait_in_seconds){ $ie.element(:type,'value').exists? }
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Sorry, probably my fault for not being clear about how new I am to this.
I want the code to do the following things:
1. Check on page for a link.
2. If link not there, press Next page
3. If link there, click on it.
4. When next page reached (if step 2 followed), repeat the action of looking
for
Aha, so you want to click Google's Next button? Take a look at
this, it might give you some ideas:
http://testingjeff.wordpress.com/2007/01/27/creating-methods-on-the-flyand-bugs-in-google-phonebook/
Also, if you are unsure how to address a particular page element, take
a look at the unittests
- Original Message -
From: Chris McMahon [EMAIL PROTECTED]
Date: Tuesday, April 3, 2007 9:04 am
Subject: Re: [Wtr-general] Using Until
Aha, so you want to click Google's Next button? Take a look at
this, it might give you some ideas:
http://testingjeff.wordpress.com/2007/01/27/creating