我有:ASP.NET Core2 App + Selenium来使用浏览器自动执行一些操作。
它在本地运行完美。使用所有 nuget 和 exe 的最新版本。
部署到 Azure 后,创建 Webdriver 时出现问题。
我试过:
新的 ChromeDriver(ChromeDriverService.CreateDefaultService("./CORE/ExeFiles"), chromeOptions);
了解一些防火墙或防病毒阻止内容,但找不到在 Azure 上配置必要属性的位置。
如何在 Azure 上使用 Selenium? 一些最简单的例子请??,我为此奋斗了3天=(
PS 还可以找到这篇文章https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#unsupported-frameworks ,最后是这样的:
不支持: PhantomJS/Selenium:尝试连接到本地地址,并且还使用 GDI+。
备择方案?如何在 Azure 上使用 Selenium?