示例#1
0
def test_ValidRegistration():
    driver = InitiateDriver.startBroswer()
    #driver.find_element_by_name(ConfigReader.fetchElementLocators('Registration','username_name')).send_keys("hello")
    #driver.find_element_by_name(ConfigReader.fetchElementLocators('Registration','email_name')).send_keys("abc")
    register = RegistrationPage.RegistrationClass(driver)
    register.enter_username('hello')
    #register.enter_email('abc')
    #driver.implicitly_wait(15)
    register.enter_email(data[0])
    register.enter_password(data[1])
def test_registration_invalid_data():
    driver = InitiateDriver.startBroswer()
    register = RegistrationPage.RegistrationClass(driver)
    register.enter_password('password')
    driver.implicitly_wait(15)
    driver.close()