python - 如何使用 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
解决方案
推荐阅读
- c# - 尝试学习如何使用 Theadpool 生成网格数据
- python - Matplotlib 子图缺少网格
- javascript - 如何在不同路由的 html 上设置不同的溢出?
- python - numpy.mean(X, axis=0) 当二维数组,否则什么都不做
- laravel - 升级到更高的 laravel 7 版本后找不到基表或视图
- haskell - 是否可以将 HOAS 函数转换为继续传递样式?
- c - 第二次调用 MPI_Bcast 从第一次调用发送旧数据
- excel - 将字符串添加到 LOOP 中同一单元格的下一行
- data-visualization - 作为 x 轴的连续百分位数
- python - 如何从 python 中的字典中删除 key: 对某个数字的对?