【问题标题】:driver.get is not navigating to the urldriver.get 没有导航到 url
【发布时间】:2014-04-02 17:18:25
【问题描述】:

目前当我使用

def testGooglePM(self):
    print "\n Searching for article "
    d = self.driver.getDriver()
    d.get('www.google.com')

它会打开一个新的 firefox 窗口,但不会导航到 url

【问题讨论】:

    标签: python selenium selenium-webdriver


    【解决方案1】:

    我相信 Firefox WebDriver 存在裸 URL 问题。试试这个:

    d.get('https://www.google.com')
    

    【讨论】:

      猜你喜欢
      • 2021-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-07
      • 1970-01-01
      • 2020-11-16
      相关资源
      最近更新 更多