Something like this should work, although it'd be better to restrict the # of
links to be checked rather than iterating through all of them
link = b.links.find {|link| link.href =~ /Page\$\d+/}link.href.match(
/Page\$\(d+)/)[1] # assumes link is actually found
From: Joe Fleck <[email protected]>
To: Watir General <[email protected]>
Sent: Thursday, October 23, 2014 11:15 AM
Subject: Re: [wtr-general] Re: Get the link to the Next Page
Can you provide the full html so we can get a better idea what you are trying
to do?
Joe
On Thu, Oct 23, 2014 at 2:03 PM, Genexodus <[email protected]> wrote:
You description is pretty vague. However, you could do this pretty easy with
<whatever_variable_for_your_browser>.link(:text, "2").click
Replace 2 with 3 and so on. Should work as they are recognized in the browser
and by WATIR as links.
On Friday, August 1, 2014 10:31:02 PM UTC-6, Ali SB wrote:
Hi all
I want to click on different pages in
:"http://periodicdisclosures.aec.gov.au/SummaryParty.aspx"element inspect is :
href="javascript:__doPostBack('ctl00$ContentPlaceHolderBody$gridViewReturns','Page$1')"how
can I Check if there is a link with the next page number?And then click on the
link to go for next page?.
Cheers
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.