Chrome driver is not working on azure web apps

£可爱£侵袭症+ 提交于 2019-12-08 05:40:28

As @IvanYang said, Selenium is not supported on Azure App Service for Windows, as the figure below from Azure Web App sandbox.

The reason is Win32k.sys (User32/GDI32) Restrictions

However, you can try to deploy your .net core app to Azure App Service on Linux, which be based on docker image.

So you can follow the quick start tutorial Create an ASP.NET Core app in App Service on Linux to migrate your current app for Linux. And due to Selenium requires headless chrome, you must have to install chromium or chrome or their headless distributions and webdriver in the docker image or write in the Dockerfile first, please refer to the offical document Tutorial: Build a custom image and run in App Service from a private registry to know it.

As reference, there are many blogs which helps for you and you can search via Google/Bing, such as Selenium in Docker with DotNetCore Chrome in Linux and Headless Mode.

Hope it helps.

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