Esempio n. 1
0
def set_random_birthdate():
    random_birthdate = random_word(random.randrange(2, 10))
    wait_write(
        random_birthdate,
        ps='writing "{0}" to the birthdate field'.format(random_birthdate),
        css_select='input#profile_birthdate')
    return random_birthdate
Esempio n. 2
0
def set_random_zip():
    random_zip = random_word(random.randrange(2, 10), has_punc=False)
    wait_write(random_zip,
               ps='writing "{0}" to the zip field'.format(random_zip),
               css_select='input#profile_zip')
    return random_zip
Esempio n. 3
0
def set_random_city():
    random_city = random_word(random.randrange(2, 10))
    wait_write(random_city,
               ps='writing "{0}" to the city field'.format(random_city),
               css_select='input#profile_city')
    return random_city
Esempio n. 4
0
def set_random_last_name():
    random_name = random_word(random.randrange(2, 10))
    wait_write(random_name,
               ps='writing "{0}" to the last name field'.format(random_name),
               css_select='input#profile_last_name')
    return random_name
Esempio n. 5
0
 def set_passengers_first_name_last_name(driver):
     fn_ln_list = get_random_fn_and_ln()
     for index in range(len(fn_ln_list)):
         wait_write(driver, fn_ln_list[index], css_select=FlightPageLocators.flight_page_passenger_information,
                    index=index)
Esempio n. 6
0
 def set_payment_country_dropdown(driver):
     wait_write(driver, country, css_select=PaymentPageLocators.payment_country_dropdown)
     wait_write(driver, '\n', css_select=PaymentPageLocators.payment_country_dropdown)
Esempio n. 7
0
 def set_payment_text_fields_information(driver, information):
     for index in range(0, len(information)):
         wait_write(driver, information[index], css_select=PaymentPageLocators.payment_information_text_fields)
 def set_flight_destination(driver):
     wait_write(driver,
                destination,
                css_select=HomePageLocators.home_page_flight_destination)
     HomePageUtil.set_flight_airport(driver)
Esempio n. 9
0
 def set_password_log_in(driver):
     wait_write(driver, password, css_select=PaymentPageLocators.log_in_popup_email_password)
def set_random_birthdate():
    random_birthdate = random_word(random.randrange(2,10))
    wait_write(random_birthdate, ps='writing "{0}" to the birthdate field'.format(random_birthdate),
               css_select='input#profile_birthdate')
    return random_birthdate
def set_random_zip2():
    random_zip = '60625'
    wait_write(random_zip, ps='writing "{0}" to the zip field'.format(random_zip),
               css_select='input#profile_zip')
    return random_zip
def set_random_zip():
    random_zip = random_word(random.randrange(2,10), has_punc=False)
    wait_write(random_zip, ps='writing "{0}" to the zip field'.format(random_zip),
               css_select='input#profile_zip')
    return random_zip
def set_random_city():
    random_city = random_word(random.randrange(2,10))
    wait_write(random_city, ps='writing "{0}" to the city field'.format(random_city),
               css_select='input#profile_city')
    return random_city
def set_random_last_name():
    random_name = random_word(random.randrange(2,10))
    wait_write(random_name, ps='writing "{0}" to the last name field'.format(random_name),
               css_select='input#profile_last_name')
    return random_name
Esempio n. 15
0
def set_random_zip2():
    random_zip = '60625'
    wait_write(random_zip,
               ps='writing "{0}" to the zip field'.format(random_zip),
               css_select='input#profile_zip')
    return random_zip
Esempio n. 16
0
 def set_phone_number(driver):
     wait_write(driver, phone_number, css_select=PaymentPageLocators.phone_number_text_field)
 def set_flight_departure(driver):
     wait_write(driver,
                origin,
                css_select=HomePageLocators.home_page_flight_departure)
     HomePageUtil.set_flight_airport(driver)