from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.keys import Keys


browser = webdriver.Firefox()
browser.get('http://1192.168.127.12:8000/signup')
elem = browser.find_element_by_name('username')
elem.send_keys('<PASSWORD>')

email = browser.find_element_by_name('email')
email.send_keys('<PASSWORD>')
password1 = browser.find_element_by_name('password')
password1.send_keys('<PASSWORD>')


print("Found")


submit = browser.find_element_by_name('submit')

submit.send_keys(Keys.RETURN)

assert 'OneLyf' in browser.title
browser.quit()
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.keys import Keys


browser = webdriver.Firefox()
browser.get('http://1192.168.127.12:8000/signup')
elem = browser.find_element_by_name('username')
elem.send_keys('<PASSWORD>')

email = browser.find_element_by_name('email')
email.send_keys('<PASSWORD>')
password1 = browser.find_element_by_name('password')
password1.send_keys('<PASSWORD>')


print("Found")


submit = browser.find_element_by_name('submit')

submit.send_keys(Keys.RETURN)

assert 'OneLyf' in browser.title
browser.quit()