PhantomJs webdriver issue on Azure web job Exception- Cannot start the driver service on http://localhost:51293/

╄→гoц情女王★ 提交于 2019-12-12 03:32:09

问题


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+.



来源:https://stackoverflow.com/questions/43466083/phantomjs-webdriver-issue-on-azure-web-job-exception-cannot-start-the-driver-se

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!