Last active
July 15, 2021 08:28
-
-
Save codewithpom/baabf2d84543ac58b0a75cc4c163572c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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