Ejemplo n.º 1
0
fake_email = email.getFakeMail()
email_field.send_keys(fake_email)
print(fake_email)

# Fill the fullname value
fullname_field = browser.find_element_by_name('fullName')
fullname_field.send_keys(account.generatingName())
print(account.generatingName())
# Fill username value
username_field = browser.find_element_by_name('username')
username_field.send_keys(name)
print(name)
# Fill password value
password_field = browser.find_element_by_name('password')
password_field.send_keys(
    account.generatePassword())  # You can determine another password here.
print(account.generatePassword())
WebDriverWait(browser, 20).until(
    EC.element_to_be_clickable((
        By.XPATH,
        "//*[@id='react-root']/section/main/div/div/div[1]/div/form/div[7]/div/button"
    ))).click()

time.sleep(8)

#Birthday verification
browser.find_element_by_xpath(
    "//*[@id='react-root']/section/main/div/div/div[1]/div/div[4]/div/div/span/span[1]/select"
).click()
WebDriverWait(browser, 20).until(
    EC.element_to_be_clickable((
Ejemplo n.º 2
0
email_field.send_keys(fake_email)
print(fake_email)

# Fill the fullname value
fullname_field = driver.find_element_by_name('fullName')
fullname_field.send_keys(account.generatingName())
print(account.generatingName())

# Fill username value
username_field = driver.find_element_by_name('username')
username_field.send_keys(name)
print(name)

# Fill password value
password_field = driver.find_element_by_name('password')
acc_password = account.generatePassword()
password_field.send_keys(
    acc_password)  # You can determine another password here.

print(name + ":" + acc_password, file=acc)

acc.close()

WebDriverWait(driver, 20).until(
    EC.element_to_be_clickable((
        By.XPATH,
        "//*[@id='react-root']/section/main/div/div/div[1]/div/form/div[7]/div/button"
    ))).click()

time.sleep(8)
    email_field = driver.find_element_by_name('emailOrPhone')
    fake_email = email.getFakeMail()
    email_field.send_keys(fake_email)
    print(fake_email)

    # Fill the fullname value
    fullname_field = driver.find_element_by_name('fullName')
    fullname_field.send_keys(account.generatingName())
    print(account.generatingName())
    # Fill username value
    username_field = driver.find_element_by_name('username')
    username_field.send_keys(name)
    print(name)
    # Fill password value
    password_field = driver.find_element_by_name('password')
    password_field.send_keys(account.generatePassword())  # You can determine another password here.
    paw = account.generatePassword()
    print(account.generatePassword())
    time.sleep(8)

    driver.find_elements_by_class_name('L3NKy')[1].click()
    #WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//button[text()='Next']"))).click()

    time.sleep(8)

    #Birthday verification
    driver.find_element_by_xpath("//*[@id='react-root']/section/main/div/div/div[1]/div/div[4]/div/div/span/span[1]/select").click()
    WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//*[@id='react-root']/section/main/div/div/div[1]/div/div[4]/div/div/span/span[1]/select/option[4]"))).click()

    driver.find_element_by_xpath("//*[@id='react-root']/section/main/div/div/div[1]/div/div[4]/div/div/span/span[2]/select").click()
    WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//*[@id='react-root']/section/main/div/div/div[1]/div/div[4]/div/div/span/span[2]/select/option[10]"))).click()