Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-14 Thread Adrian Rutter
Hi Bret Using 1.5.1.1037 try this: $ie.link(:text = 'New', :index = 2).click I added multiple attribute support last night for links. How could I get hold of this version. Is there a CVS repo I can download from? Could you also tell me the name of the method, so I could have a look at

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-14 Thread Zeljko Filipin
http://openqa.org/watir/cvs.actionOn 6/14/06, Adrian Rutter [EMAIL PROTECTED] wrote:How could I get hold of this version. Is there a CVS repo I can download from? ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Adrian Rutter
I have got 2 'New' links in one HTML page. The second link has a URL as this:

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Zeljko Filipin
Try this:$ie.link(:url, /http:\/\/gbahevm07l15:9081\/wps\/myportal.*7_0_12P/).clickOn 6/13/06, Adrian Rutter [EMAIL PROTECTED] wrote:I have got 2 'New' links in one HTML page. The second link has a URL as this:

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Adrian Rutter
Thanks for the correct RegEx; it finds an object, but not the one I want. The below are the url's of the second 'Filter' and 'New' links. They are hardly different and I am sure they will change in a different environment, so I can't hard-code them

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Michael Bolton
Thanks for the correct RegEx; it finds an object, but not the one I want. Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).click Possibly--but this might be a good occasion to ask the developers for testability. ---Michael B.

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Adrian Rutter
MB wrote: Possibly--but this might be a good occasion to ask the developers for testability. I think Websphere Portal instantiates each object dynamically and according to the developers, there is nothing they can do. Aidy

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread David Schmidt
Adrian Rutter wrote: Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).click It is currently possible to access the second link on a page, but not with a filter. '$ie.links[2]' will give you the second link on the page, and you can open

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Bret Pettichord
Adrian Rutter wrote: Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).clickUsing 1.5.1.1037 try this: $ie.link(:text = 'New', :index = 2).click I added multiple attribute support last night for links. Bret