Created
October 18, 2023 18:40
-
-
Save logston/79436859c25fc814eb5508a55031f513 to your computer and use it in GitHub Desktop.
Fill a Form
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
import sys | |
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
def main(url): | |
driver = webdriver.Firefox() | |
driver.get(url) | |
e = driver.find_element(by=By.NAME, value='q') | |
e.send_keys('Sup Beth') | |
time.sleep(3) | |
driver.close() | |
if __name__ == '__main__': | |
main(sys.argv[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment