I don't see anything wrong with your approach other than your test might be
brittle i.e it might break if the url changes

Is there a reason why you are not considering accessing the link using
:xpath?

On Tue, Aug 10, 2010 at 3:43 PM, Shlomit Gazit <shlomitpatr...@gmail.com>wrote:

> I think I have a work around it with back browser button and index,
> but I think it will be nice to know what I asked here.
> I will give you an example:
>
> req_link= $ie.link(:url,/reqView.do.*?navigationTrail/ && !
> $ie.req_link(:title,/Limit/))
>
>  Is there something similar that I can do?
>
>
>
> On Aug 10, 11:57 am, Basim Baassiri <ba...@baassiri.ca> wrote:
> > Shlomit,
> > Can you provided a small sample of the html to give some context?
> > Basim
> >
> > On Tue, Aug 10, 2010 at 2:46 PM, Shlomit Gazit <shlomitpatr...@gmail.com
> >wrote:
> >
> >
> >
> > > Hello Basim,
> > > *
> > > *
> > > I dont see a solution to my problem in the link you have sent.
> > > Also I dont want to iterate all the links in the page because I was a
> > > specific links collection.
> >
> > > On Tue, Aug 10, 2010 at 11:25 AM, Basim Baassiri <ba...@baassiri.ca
> >wrote:
> >
> > >> Did you try looking at some examples from the documentation
> > >>
> http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html#M000317
> >
> > >> On Tue, Aug 10, 2010 at 2:20 PM, Shlomit Gazit <
> shlomitpatr...@gmail.com>wrote:
> >
> > >>> I have two links leading to two different places in my application.
> > >>> (It is quite a bug but there is no urgent to fix it from the
> > >>> development department. Unfortunately it is breaking my test).
> > >>> I was thinking for a while on a solution, and what I found maybe is
> > >>> that one of the links has title and the other link doesn't have.
> > >>> Is there any way I can command to click on the link with the url this
> > >>> and that but with title "empty"?
> >
> > >>> Thank you, Shlomit.
> >
> > >>> --
> > >>> Before posting, please readhttp://watir.com/support. In short:
> search
> > >>> before you ask, be nice.
> >
> > >>> You received this message because you are subscribed to
> > >>>http://groups.google.com/group/watir-general
> > >>> To post: watir-general@googlegroups.com
> > >>> To unsubscribe: 
> > >>> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
> <watir-general%2bunsubscr...@goog legroups.com>
> >
> > >>  --
> > >> Before posting, please readhttp://watir.com/support. In short: search
> > >> before you ask, be nice.
> >
> > >> You received this message because you are subscribed to
> > >>http://groups.google.com/group/watir-general
> > >> To post: watir-general@googlegroups.com
> > >> To unsubscribe: 
> > >> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
> <watir-general%2bunsubscr...@goog legroups.com>
> >
> > >  --
> > > Before posting, please readhttp://watir.com/support. In short: search
> > > before you ask, be nice.
> >
> > > You received this message because you are subscribed to
> > >http://groups.google.com/group/watir-general
> > > To post: watir-general@googlegroups.com
> > > To unsubscribe: 
> > > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
> <watir-general%2bunsubscr...@goog legroups.com>
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
> To unsubscribe: 
> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to