All
Even javascript is failing with same reason. So this again passed in Local
machine but failed with the same reason on the Jenkins box. WTF!!!
def rewards_popup_description
#return cta_description_element.when_present.text.gsub(/[^$,.A-Za-z0-9]/," ")
return @browser.execute_script('return
document.getElementsByClassName("homepage-clickactivate-popup")[0];').text.gsub(/[^$,.A-Za-z0-9]/,"
")
end
def rewards_popup_expiration
#return cta_expiry_element.when_present.text.gsub(/[^$,.A-Za-z0-9]/," ")
return @browser.execute_script('return
document.getElementsByClassName("expiration-days")[0];').text.gsub(/[^$,.A-Za-z0-9]/,"
")
end
expected "" to include "$10 reward activated" (RSpec::Expectations::
ExpectationNotMetError)
./features/step_definitions/Loyalty_steps.rb:9:in `block (2 levels) in '
./features/step_definitions/Loyalty_steps.rb:8:in `/^the customer sees the
overlay popup message "([^"]*)"$/'
features/Loyalty-AU.feature:122:in `And the customer sees the overlay popup
message "$10 reward activated"'
--
--
Before posting, please read
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
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.