我正在尝试使用selenium(python)使用chrome驱动程序打印一个网页。它启动网页但从不打印i

2024-05-14 19:39:45 发布

您现在位置:Python中文网/ 问答频道 /正文

from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys

chrome_path = r"C:\Users\shantam\Desktop\chromedriver.exe"
driver= webdriver.Chrome(chrome_path)    
driver.get('https://careers.jpmorgan.com/careers/apply-experienced')#open the webpage
ActionChains(driver).send_keys(Keys.CONTROL + "p").perform()

不知怎么的,actionchain不起作用了。 请帮忙。在


Tags: pathfromimportdriverseleniumactioncommonkeys

热门问题