如何使用 selenium python 选择 V​​PN(zenmate) chrome

我想使用 selenium 自动选择 zenmate VPN 扩展的国家/地区,但我不知道如何访问它


这是我添加扩展的代码:


from selenium import webdriver

from selenium.webdriver.chrome.options import Options


chrome_option = Options()

chrome_option.add_extension("vpn.crx")

driver1 = webdriver.Chrome(executable_path='chromedriver.exe',options=chrome_option)

driver1.get("https://www.google.com/")


呼唤远方
浏览 65回答 1
1回答

qq_花开花谢_0

您可以使用pyautogui。将鼠标移至扩展程序图标,单击它,转到搜索字段,查找国家/地区并单击它。瞧。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python