首页 > 解决方案 > 如何使用 GET 方法在 selenium 中打开 url

问题描述

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
w = webdriver.Chrome(executable_path='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe')
w.get("https://www.youtube.com") 

这是我的代码,我的浏览器正在打开,但我的最后一行没有执行并且无法打开 url

标签: pythonseleniumgoogle-chromewebdriver

解决方案


推荐阅读