Getting “Message: h is null”

后端 未结 2 1820
难免孤独
难免孤独 2021-01-23 04:49

I\'ve recently encountered something I\'ve never seen before while using selenium.

The code (quite simple and straightforward):

from seleniu         


        
相关标签:
2条回答
  • 2021-01-23 05:06

    Looks like selenium 2.45.0 does not support ff 37.

    The change log shows selenium 2.44 supported FF33. Selenium 2.45 was released around Feb 26th 2015, while FF37 was released on March 31st 2015.

    0 讨论(0)
  • 2021-01-23 05:16

    Looks like by the time the page loads it is executing this line of code and throwing an error message. try to wait till the page loads by using

    time.sleep(200)
    

    and keep this line of code under try block as:

    try:
        WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.CSS_SELECTOR, "table.data-list")))
    except:
        print("not found")
    
    0 讨论(0)
提交回复
热议问题