I would suggest learning a bit more about ruby. Your error message is
pretty clear.


On Tue, Feb 18, 2014 at 10:19 AM, Kirkwood Clarke <[email protected]>wrote:

> Persistent:   undefined method `button' for nil:NilClass (NoMethodError)
>
>  *Step def looks like:*
>
>  Given(/^I see the see my trip button$/) do |*button|
>
> trip = @browser.button(:id,'see-my-trip-button').exist?
>
> end
>
>
>
> Made many attempts to resolve this
>
> And found lots of support articles but still stumped
>
>  *Error: *
>
>
>
>      Given I see the see my trip button #
> features/step_definitions/Chase_UR2.0_Cash_Back_step_def.rb:115
>
>       undefined method `button' for nil:NilClass (NoMethodError)
>
>       ./features/step_definitions/Chase_UR2.0_Cash_Back_step_def.rb:116:in
> `/^I see the see my trip button$/'
>
>       features\a_smoke_login.feature:18:in `Given I see the see my trip
> button'
>
>
>
> *Code (class):*
>
> require 'rubygems'
>
>
>
> require 'watir-webdriver'
>
> @browser.button(:id,'see-my-trip-button').exist?
>
>
>
> *HTML*
>
>
>
>     div id="see-my-trip-button" class="btn green" tabindex="26"
> aria-label="see my trip" role="button">
>
>      See my trip
>
>   </div>
>
> </div>
>
> Help is greatly appreciated
>
> --
> --
> 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/groups/opt_out.
>

-- 
-- 
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/groups/opt_out.

Reply via email to