[wtr-general] Re: How to compare Text in Links

2009-06-18 Thread Vishal
Sorry , Actually it was using only one "=" instead of two "==" while comparing. Now i changed it and it is working fine. Thanks for you help Željko. Vishal On Jun 18, 4:00 pm, Željko Filipin wrote: > On Thu, Jun 18, 2009 at 12:56 PM, Vishal wrote: > > It doesn't work. > > I hope this will no

[wtr-general] Re: How to compare Text in Links

2009-06-18 Thread Željko Filipin
On Thu, Jun 18, 2009 at 12:56 PM, Vishal wrote: > It doesn't work. I hope this will not sound rude, but how do you expect me to help you now? Saying `it does not work` does not give me any information what could be wrong. What did you do? What happened when you did it? Any error messages? Želj

[wtr-general] Re: How to compare Text in Links

2009-06-18 Thread Vishal
It doesn't work. Vishal On Jun 17, 5:43 pm, Željko Filipin wrote: > Try this (not tested): > > puts "uh oh" if $ie.div(:id,"center").link(:index,21).text != > $ie2.link(:index,31).text > > Željko > --http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this

[wtr-general] Re: How to compare Text in Links

2009-06-17 Thread Željko Filipin
Try this (not tested): puts "uh oh" if $ie.div(:id,"center").link(:index,21).text != $ie2.link(:index,31).text Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group

[wtr-general] Re: How to compare Text in Links

2009-06-17 Thread Vishal
Thanks, In my application link text is dynamically generated . These the two links whose text value I need to compare $ie.div(:id,"center").link(:index,21) $ie2.link(:index,31) On Jun 15, 6:58 pm, Wesley Chen wrote: > Sorry, please try: > assert $ie.link(:text, ***1).value.eql?($ie.link(:text

[wtr-general] Re: How to compare Text in Links

2009-06-15 Thread Wesley Chen
Sorry, please try: assert $ie.link(:text, ***1).value.eql?($ie.link(:text, ***2).value) Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 9:58 PM, Wesley Chen wrote: > assert $ie.link(:text, ***).value.eql?($ie.link(:text, ***2)) > --~--~-~--~~~---~--~~ You received

[wtr-general] Re: How to compare Text in Links

2009-06-15 Thread Wesley Chen
assert $ie.link(:text, ***).value.eql?($ie.link(:text, ***2)) Thanks. Wesley Chen. On Mon, Jun 15, 2009 at 7:27 PM, Vishal wrote: > > Hi, > I have to 2 web pages, I need to compare values of Link text > between two pages. > Please suggest how to do this. > > > Thanks > Vishal > > > > --~--~