Python: Selenium with PhantomJS empty page source

后端 未结 4 1772
深忆病人
深忆病人 2020-11-28 14:31

I\'m having trouble with Selenium and PhantomJS on Windows7 when I want to get the source of the page of an URL. browser.page_source returns only

4条回答
  •  天涯浪人
    2020-11-28 15:10

    driverPhantom = webdriver.PhantomJS(driverLocation, service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any'])      # initaling web driver for PhantomJs
    

    Worked for me.

提交回复
热议问题