Skip to content

Instantly share code, notes, and snippets.

@codewithpom
Last active July 15, 2021 08:28
Show Gist options
  • Save codewithpom/baabf2d84543ac58b0a75cc4c163572c to your computer and use it in GitHub Desktop.
Save codewithpom/baabf2d84543ac58b0a75cc4c163572c to your computer and use it in GitHub Desktop.
from selenium.webdriver import Chrome
# import the Chrome class
import time
driver = Chrome()
# create driver instance
driver.get("https://www.seleniumeasy.com/test/basic-first-form-demo.html")
time.sleep(3)
close_button = driver.find_element_by_id('at-cv-lightbox-close')
close_button.click()
message_input = driver.find_element_by_id('user-message')
message_input.send_keys("Hello World")
driver.execute_script("showInput()")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment