https://demo.seleniumeasy.com/basic-first-form-demo.html
from selenium import webdriver #chrome_browser=webdriver.Chrome('./chromedriver') driver = webdriver.Chrome() driver.get("https://demo.seleniumeasy.com/basic-first-form-demo.html") driver.maximize_window() #print('Python Tuto' in driver.title) #assert ('Python' in driver.title) #assert ('Python' in driver.body) button=driver.find_element('btn-default') #print(button.get_attribute('innerHTML')) assert 'Show Message' in driver.page_source user_message=driver.find_element_by_id('user-message') user_message.clear() user_message.send_keys('I Am Extra Cool') button.click() output_message=driver.find_element_by_id('display') assert 'I am extra cool' in output_message.txt chrome_browser.quit() #print(driver.title) #print(driver.current_url)