如何毫不迟延地访问网页;数据&引用;在Python中使用Selenium Chromedriver的页面?
我在Python中使用Selenium和Chrome webdriver,当我运行脚本时,它会正常打开Chrome,但它会在“数据”页面中等待10秒左右,然后正常转到页面。我可以跳过等待时间,立即进入页面吗? 这是我的代码:如何毫不迟延地访问网页;数据&引用;在Python中使用Selenium Chromedriver的页面?,python,selenium,google-chrome,webdriver,Python,Selenium,Google Chrome,Webdriver,我在Python中使用Selenium和Chrome webdriver,当我运行脚本时,它会正常打开Chrome,但它会在“数据”页面中等待10秒左右,然后正常转到页面。我可以跳过等待时间,立即进入页面吗? 这是我的代码: class Instance(): driver=None url=None def __init__(self, url): self.url=url def runInstance(self): se
class Instance():
driver=None
url=None
def __init__(self, url):
self.url=url
def runInstance(self):
self.driver = webdriver.Chrome(executable_path = "C:\chromedriver.exe")
self.driver.get(self.url)
instance = Instance("https://www.youtube.com/")
instance.runInstance()
尝试将chromedriver更新为最新版本。更新后的chrome和chromedriver仍然相同:/