Selenium.PhantomJS is invalid namespace

后端 未结 2 1112
小鲜肉
小鲜肉 2021-01-19 03:53

I am really trying my best to find a way to web scrape a website using javascript to load the pages so I can scrape lets say my playlist for example. I have had no luck with

相关标签:
2条回答
  • 2021-01-19 04:36

    So the simple answer to fix your issue is that when install the Selenium.WebDriver Nuget Package make sure its on version 3.11.2 as PhantomJS driver classes were removed in 3.14 (Had the exact same problem) as is no longer maintained.

    0 讨论(0)
  • 2021-01-19 04:43

    The .NET language bindings marked the PhantomJS driver classes deprecated in 3.11, and those classes were removed in 3.14. The PhantomJS project and its driver are no longer being maintained, and the driver code has not (and will not) be updated to support the W3C WebDriver Specification. The preferred “headless” solution is to use Chrome or Firefox in headless mode, as both of those browsers and their drivers support such an operating mode. Alternatively, if you have your heart set on PhantomJS, and you don’t care about cross-browser execution, you can simply use the PhantomJS executable and automate it through its internal JavaScript API.

    0 讨论(0)
提交回复
热议问题