コード例 #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
コード例 #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
コード例 #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
コード例 #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
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #8
0
 def set_flight_destination(driver):
     wait_write(driver,
                destination,
                css_select=HomePageLocators.home_page_flight_destination)
     HomePageUtil.set_flight_airport(driver)
コード例 #9
0
 def set_password_log_in(driver):
     wait_write(driver, password, css_select=PaymentPageLocators.log_in_popup_email_password)
コード例 #10
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
コード例 #11
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
コード例 #12
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
コード例 #13
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
コード例 #14
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
コード例 #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
コード例 #16
0
 def set_phone_number(driver):
     wait_write(driver, phone_number, css_select=PaymentPageLocators.phone_number_text_field)
コード例 #17
0
 def set_flight_departure(driver):
     wait_write(driver,
                origin,
                css_select=HomePageLocators.home_page_flight_departure)
     HomePageUtil.set_flight_airport(driver)