Sha256: 8064580c869d9fd97aa1537d5bcf83e4fc520be423b927ac4d3b469cf9fb3ce5
Contents?: true
Size: 619 Bytes
Versions: 10
Compression:
Stored size: 619 Bytes
Contents
require_relative '../abstract/page' <%- if automation == 'sparkling_ios' -%> class Pdp < Page # Actions def add_to_cart_text add_to_cart_button.wait_until(&:present?).text end private # Elements def add_to_cart_button app.element(accessibility_id: 'Add To Cart button') end end <%- else -%> class Pdp < Page # Actions def add_to_cart_text driver.wait { add_to_cart_button }.text end private # Elements def add_to_cart_button <%= ERB.new(File.read(File.expand_path('./partials/pdp_page_selector.tt', __dir__)), trim_mode: '-').result(binding) %> end end <%- end -%>
Version data entries
10 entries across 10 versions & 1 rubygems