Browser.link(:text,/Click This Link/).click
-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of James
Sent: Wednesday, June 03, 2009 11:08 AM
To: Watir General
Subject: [wtr-general] Finding a specific instance of a repeated link
Could also use multiple attributes:
browser.link(:index = 1, :text = /Click This Link/).click
or xpath.
Charley Baker
blog: http://blog.charleybaker.org/
Lead Developer, Watir, http://wtr.rubyforge.org
QA Architect, Gap Inc Direct
On Wed, Jun 3, 2009 at 10:10 AM, Darin Duphorn
But the text I'm referring to isn't part of the link itself. The link
text is the same. I'm looking at the text that occurs -before- (or
possibly after) the link.
Thanks for your suggestions, but unfortunately, in this example, it
won't work.
James
On Jun 3, 12:13 pm, Charley Baker
Sent: Wednesday, June 03, 2009 11:17 AM
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance of a repeated link via
text surrounding it.
But the text I'm referring to isn't part of the link itself. The link
text is the same. I'm looking at the text that occurs -before
@googlegroups.com [mailto:watir-gene...@googlegroups.com]
On Behalf Of James
Sent: Wednesday, June 03, 2009 11:17 AM
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance of a repeated link via
text surrounding it.
But the text I'm referring to isn't part of the link itself
to use it.
Is this a correct?
-Original Message-
From: watir-general@googlegroups.com [mailto:
watir-gene...@googlegroups.com] On Behalf Of James
Sent: Wednesday, June 03, 2009 11:17 AM
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance of a repeated link
] On Behalf Of James
Sent: Wednesday, June 03, 2009 11:39 AM
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance of a repeated link
via text surrounding it.
Thanks Darin - that's really helpful! Now I just need to know how to
latch onto the text surrounded by the b/b
[mailto:watir-gene...@googlegroups.com] On Behalf Of Charley Baker
Sent: Wednesday, June 03, 2009 11:51 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Finding a specific instance of a repeated
link via text surrounding it.
Zeljko has a blog entry for extending support to other
...
-Original Message-
From: watir-general@googlegroups.com [mailto:
watir-gene...@googlegroups.com] On Behalf Of James
Sent: Wednesday, June 03, 2009 11:39 AM
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance of a repeated link
via text surrounding it.
Thanks Darin
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance of a repeated link
via text surrounding it.
It's more like I just want to grab an element based on where it is in
reference to another element, or in reference to text on the page.
I noticed Charley's mention of xpath
it.
Is this a correct?
-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of James
Sent: Wednesday, June 03, 2009 11:17 AM
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance of a repeated
(:text,'Home')).span(:index,1)
-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of James
Sent: Wednesday, June 03, 2009 11:24 AM
To: Watir General
Subject: [wtr-general] Re: Finding a specific instance
12 matches
Mail list logo