[英]Python, Selenium. Successfully initialized webdriver but couldn't open a web page because “there is no attribute called get”
you haven't created the browser object use below code:您尚未创建浏览器 object 使用以下代码:
from selenium import webdriver
driver =webdriver.Chrome(r"C:\Users\Downloads\chromedriver.exe")
driver.get("https://www.google.com")
you just referenced the method you should trigger and call it by passing arguments您刚刚引用了应该触发并通过传递 arguments 调用它的方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.