did you try the other option? browser.a(:title=>'Location')
Joe On Fri, Dec 5, 2014 at 2:27 PM, c w <[email protected]> wrote: > Right, > > but still I get this > > cristina | cristinadumitrescu.vizllyhoteldemo.com/home.html?nocache | > unable to locate element, using {:href=>"location.html", > :tag_name=>"a"} (Watir::Exception::UnknownObjectException) > ./features/support/pages/WebsitePage.rb:58:in `click_location' > ./features/step_definitions/vizlly_steps.rb:31:in `/^click on > Location$/' > features\web.feature:11:in `And click on Location' > > Failing Scenarios: > > On Fri, Dec 5, 2014 at 1:40 PM, c w <[email protected]> wrote: > >> Hi Joe, >> >> is not working. I am getting the following >> ' >> @browser.a(:href=>'location.html') >> >> returns >> >> undefined method `a' for nil:NilClass (NoMethodError) >> ./features/support/pages/WebsitePage.rb:49:in `click_location' >> ./features/step_definitions/vizlly_steps.rb:31:in `/^click on >> Location$/' >> features\web.feature:11:in `And click on Location' >> >> Failing Scenarios: >> >> >> >> >> On Fri, Dec 5, 2014 at 11:59 AM, Joe Fleck <[email protected]> wrote: >> >>> Hi Cristina, >>> >>> did you try these? >>> >>> browser.a(:title=>'Location') >>> >>> or >>> >>> browser.a(:href=>'location.html') >>> >>> Joe >>> >>> On Fri, Dec 5, 2014 at 9:12 AM, c w <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> please check the attached file. Can one tell me how can I click on the >>>> <a href="location.html................"> >>>> >>>> I need to be able to click it not using text because when language >>>> changes the text will change. >>>> >>>> >>>> Kind regards, >>>> Cristina >>>> >>>> -- >>>> -- >>>> Before posting, please read http://watir.com/support. In short: search >>>> before you ask, be nice. >>>> >>>> [email protected] >>>> http://groups.google.com/group/watir-general >>>> [email protected] >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Watir General" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> -- >>> Before posting, please read http://watir.com/support. In short: search >>> before you ask, be nice. >>> >>> [email protected] >>> http://groups.google.com/group/watir-general >>> [email protected] >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Watir General" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
