ui自动化浏览器驱动

from selenium import webdriver
import time
import random
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://192.168.2.53:8089/")
driver.find_element(By.NAME,"username").send_keys("admin")
driver.find_element(By.NAME,"password").send_keys("123456")
driver.find_element(By.ID,"login-btn").click()
time.sleep(2)
posted @ 2023-02-20 17:29  沐沐大帅  阅读(118)  评论(0编辑  收藏  举报