Sha256: 1c6c2496efd8494a40b1c34bae3bd057a671ec2742c8d9f7e36ee7463c225cd1
Contents?: true
Size: 653 Bytes
Versions: 10
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true require_relative '../abstract/page' <%- if automation == 'sparkling_ios' -%> class Home < Page # Actions def go_to_backpack_pdp app.tap on: backpack_image.wait_until(&:present?) end private # Elements def backpack_image app.element(predicate: 'label == "Sauce Labs Backpack"') end end <%- else -%> class Home < Page # Actions def go_to_backpack_pdp driver.wait { backpack_image }.click end private # Elements def backpack_image <%= ERB.new(File.read(File.expand_path('./partials/home_page_selector.tt', __dir__)), trim_mode: '-').result(binding) %> end end <%- end -%>
Version data entries
10 entries across 10 versions & 1 rubygems