Sha256: 6acd11e9fee4a167cd535267b2214127720d8ac044885165ec3e0e12a250e99b

Contents?: true

Size: 1.47 KB

Versions: 5

Compression:

Stored size: 1.47 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: '(//android.widget.EditText[@content-desc="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: '(//android.widget.EditText[@content-desc="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: '//android.view.ViewGroup[contains(@content-desc, "checkbox")]/android.view.ViewGroup'}
  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/android/screens/checkout_payment_screen.rb
testcentricity-3.0.3 features/support/android/screens/checkout_payment_screen.rb
testcentricity-3.0.2 features/support/android/screens/checkout_payment_screen.rb
testcentricity-3.0.1 features/support/android/screens/checkout_payment_screen.rb
testcentricity-3.0.0 features/support/android/screens/checkout_payment_screen.rb