That error is saying @browser is nil, not that your locator is incorrect.

On Fri, Dec 5, 2014 at 12:40 PM, c w <cristina.wa...@gmail.com> 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 <joeflec...@gmail.com> 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 <cristina.wa...@gmail.com> 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.
>>>
>>> watir-general@googlegroups.com
>>> http://groups.google.com/group/watir-general
>>> watir-general+unsubscr...@googlegroups.com
>>>
>>> ---
>>> 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 watir-general+unsubscr...@googlegroups.com.
>>> 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.
>>
>> watir-general@googlegroups.com
>> http://groups.google.com/group/watir-general
>> watir-general+unsubscr...@googlegroups.com
>>
>> ---
>> 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 watir-general+unsubscr...@googlegroups.com.
>> 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.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>
> ---
> 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 watir-general+unsubscr...@googlegroups.com.
> 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.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to