[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Darin Duphorn
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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Charley Baker
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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread James
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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Darin Duphorn
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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread James
@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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Charley Baker
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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Charley Baker
] 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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Darin Duphorn
[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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread James
... -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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Chuck van der Linden
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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread James
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

[wtr-general] Re: Finding a specific instance of a repeated link via text surrounding it.

2009-06-03 Thread Chuck van der Linden
(: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