PhantomJs webdriver issue on Azure web job Excepti

2019-09-14 17:05发布

问题:

I am working with Phantomjs web diver to get page source .it's working fine on local but when i host webjob on azure then its giving me exception;

OpenQA.Selenium.WebDriverException: Cannot start the driver service on http://localhost:51293/

http://localhost:51293/ this path changed at every run .

回答1:

PhantomJS is not supported by Azure Web App/Web Jobs currently. It is noted in the end of following official document.

Azure Web App sandbox - Unsupported frameworks

Other scenarios that are not supported: PhantomJS/Selenium: tries to connect to local address, and also uses GDI+.