Sha256: 1bcf7ce323b8bd4f52f7df9e05d3e174964d779f1389b22b1d94c93b55992c3a

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 KB

Contents

class CheckoutPaymentScreen < BaseAppScreen
  include SharedCheckoutPaymentScreen

  trait(:page_name)    { 'Checkout - Payment' }
  trait(:page_locator) { { accessibility_id: 'checkout payment screen' } }
  trait(:page_url)     { 'checkout-payment' }

  # Checkout Payment screen UI elements
  textfields payee_name_field:     { xpath: '(//XCUIElementTypeTextField[@name="Full Name* input field"])[1]' },
             card_number_field:    { accessibility_id: 'Card Number* input field' },
             expiration_field:     { accessibility_id: 'Expiration Date* input field' },
             security_code_field:  { accessibility_id: 'Security Code* input field' },
             recipient_name_field: { xpath: '(//XCUIElementTypeTextField[@name="Full Name* input field"])[2]' },
             address1_field:       { accessibility_id: 'Address Line 1* input field' },
             address2_field:       { accessibility_id: 'Address Line 2 input field' },
             city_field:           { accessibility_id: 'City* input field' },
             state_region_field:   { accessibility_id: 'State/Region input field' },
             zip_code_field:       { accessibility_id: 'Zip Code* input field' },
             country_field:        { accessibility_id: 'Country* input field' }
  checkbox   :bill_address_check,  { xpath: '//XCUIElementTypeOther[contains(@name, "checkbox")]'}
  button     :review_order_button, { accessibility_id: 'Review Order button' }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
testcentricity-3.0.4 features/support/ios/screens/checkout_payment_screen.rb
testcentricity-3.0.3 features/support/ios/screens/checkout_payment_screen.rb
testcentricity-3.0.2 features/support/ios/screens/checkout_payment_screen.rb
testcentricity-3.0.1 features/support/ios/screens/checkout_payment_screen.rb
testcentricity-3.0.0 features/support/ios/screens/checkout_payment_screen.rb