features/page_objects/journey/address_manual_page.rb
def submit(args = {})
    house_number.set(args[:house_number]) if args.key?(:house_number)
    address_line_one.set(args[:address_line_one])
    address_line_two.set(args[:address_line_two]) if args.key?(:address_line_two)
    city.set(args[:city]) if args.key?(:city)
    postcode.set(args[:postcode]) if args.key?(:postcode)
    country.set(args[:country]) if args.key?(:country)

    submit_button.click
  end
# Use this for all manual addresses for renewals
Use this for all manual addresses for renewals
Use this for all manual addresses for renewals
def submit(args = {})
    house_number.set(args[:house_number]) if args.key?(:house_number)
    address_line_one.set(args[:address_line_one])
    address_line_two.set(args[:address_line_two]) if args.key?(:address_line_two)
    city.set(args[:city]) if args.key?(:city)
    postcode.set(args[:postcode]) if args.key?(:postcode)
    country.set(args[:country]) if args.key?(:country)
    submit_button.click
  end
def submit ( args = { } ) house_number . set ( args [ :house_number ] ) if args . key? ( :house_number ) address_line_one . set ( args [ :address_line_one ] ) address_line_two . set ( args [ :address_line_two ] ) if args . key? ( :address_line_two ) city . set ( args [ :city ] ) if args . key? ( :city ) postcode . set ( args [ :postcode ] ) if args . key? ( :postcode ) country . set ( args [ :country ] ) if args . key? ( :country ) submit_button . click end
Use this for all manual addresses for renewals
Use this for all manual addresses for renewals
args