from selenium import webdriver
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains

url = ""

driver = webdriver.Chrome('./chromedriver')
driver.implicitly_wait(10)

driver.get(url)

chain = ActionChains(driver)
chain.send_keys_toElement(driver.find_element_by_name('name'), 'Seppe')
chain.click(driver.find_element_by_css_selector('input[name="gender"][value="M"]'))
chain.click(driver.find_element_by_name('pizza'))
chain.click(driver.find_element_by_name('salad'))
chain.click(driver.find_element_by_name('comments'))
chain.send_keys(['This is a first line', Keys.ENTER, 'And this is second'])
chain.perform()

Select(driver.find_element_by_name('haircolor')).select_by_value('brown')

input('Press ENTER to submit the form')

driver.find_element_by_tag_name('form').submit()

input('Press ENTER to close the automated browser')

driver.quit()

82875ef62d52667a870f17ef634cf6b1ba5fe2c1
<mask token>

<mask token>
driver.implicitly_wait(10)
driver.get(url)
<mask token>
chain.send_keys_toElement(driver.find_element_by_name('name'), 'Seppe')
chain.click(driver.find_element_by_css_selector(
    'input[name="gender"][value="M"]'))
chain.click(driver.find_element_by_name('pizza'))
chain.click(driver.find_element_by_name('salad'))
chain.click(driver.find_element_by_name('comments'))
chain.send_keys(['This is a first line', Keys.ENTER, 'And this is second'])
chain.perform()
Select(driver.find_element_by_name('haircolor')).select_by_value('brown')
input('Press ENTER to submit the form')
driver.find_element_by_tag_name('form').submit()
input('Press ENTER to close the automated browser')
driver.quit()

<mask token>
url = ''
driver = webdriver.Chrome('./chromedriver')
driver.implicitly_wait(10)
driver.get(url)
chain = ActionChains(driver)
chain.send_keys_toElement(driver.find_element_by_name('name'), 'Seppe')
chain.click(driver.find_element_by_css_selector(
    'input[name="gender"][value="M"]'))
chain.click(driver.find_element_by_name('pizza'))
chain.click(driver.find_element_by_name('salad'))
chain.click(driver.find_element_by_name('comments'))
chain.send_keys(['This is a first line', Keys.ENTER, 'And this is second'])
chain.perform()
Select(driver.find_element_by_name('haircolor')).select_by_value('brown')
input('Press ENTER to submit the form')
driver.find_element_by_tag_name('form').submit()
input('Press ENTER to close the automated browser')
driver.quit()

from selenium import webdriver
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
url = ''
driver = webdriver.Chrome('./chromedriver')
driver.implicitly_wait(10)
driver.get(url)
chain = ActionChains(driver)
chain.send_keys_toElement(driver.find_element_by_name('name'), 'Seppe')
chain.click(driver.find_element_by_css_selector(
    'input[name="gender"][value="M"]'))
chain.click(driver.find_element_by_name('pizza'))
chain.click(driver.find_element_by_name('salad'))
chain.click(driver.find_element_by_name('comments'))
chain.send_keys(['This is a first line', Keys.ENTER, 'And this is second'])
chain.perform()
Select(driver.find_element_by_name('haircolor')).select_by_value('brown')
input('Press ENTER to submit the form')
driver.find_element_by_tag_name('form').submit()
input('Press ENTER to close the automated browser')
driver.quit()

from selenium import webdriver
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains

url = ""

driver = webdriver.Chrome('./chromedriver')
driver.implicitly_wait(10)

driver.get(url)

chain = ActionChains(driver)
chain.send_keys_toElement(driver.find_element_by_name('name'), 'Seppe')
chain.click(driver.find_element_by_css_selector('input[name="gender"][value="M"]'))
chain.click(driver.find_element_by_name('pizza'))
chain.click(driver.find_element_by_name('salad'))
chain.click(driver.find_element_by_name('comments'))
chain.send_keys(['This is a first line', Keys.ENTER, 'And this is second'])
chain.perform()

Select(driver.find_element_by_name('haircolor')).select_by_value('brown')

input('Press ENTER to submit the form')

driver.find_element_by_tag_name('form').submit()

input('Press ENTER to close the automated browser')

driver.quit()
