如何使用 selenium python 选择 V​​PN(zenmate) chrome 扩展的国家/地区

How to chose country of VPN(zenmate) chrome extension with selenium python

我想用 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/")

您可以使用 pyautogui。让你的鼠标转到扩展程序图标,单击它,转到搜索字段,查找国家并单击它。瞧。