Closed cohhi closed 1 year ago
ctrl a 全选功能正常
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.get("http://411.free.svipss.top/blog/resources/applicationtest/resources/steam-404/steam-404Selenium.html")
body = driver.find_element(by=By.CSS_SELECTOR, value="*")
body.send_keys(Keys.CONTROL,'a')
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
driver.get("http://411.free.svipss.top")
action = ActionChains(driver)
action.send_keys(Keys.F12)
action.perform()
example