I'm working on a cucumber, ruby, capybara, siteprism project and we're defining most UK variables in a siteprism page object.
Is there a way for me to use the siteprism variables that I create as part of the definition for new variables?
For example, if I've got a siteprim page that looks like:
sections :user_container, "#user_container" do
sections :address_module, "#address" do
element :house_number, "#house_number"
end
end
Can I somehow define new variables on the same pageobject declaration, something like:
element :postcode, :user_container[2].:address_module[1].text
OR
element :postcode, ":user_container[2].:address_module[1].text"
OR
some other syntax or workaround?
Thank you.