繁体   English   中英

Selenium Internet Explorer驱动程序,Kendo Mobile和Octopus Deploy

[英]Selenium Internet Explorer Driver, Kendo Mobile and Octopus Deploy

我们有一个使用Kendo Mobile UI组件的MVC 5 C#Web应用程序,并通过Octopus Deploy(测试,登台,产品)进行了部署,并且还具有运行Selenium UI测试的步骤。

使用Selenium Chrome驱动程序,该过程可以完美地适用于所有环境,但是服务器上的Selenium Internet Explorer驱动程序存在问题。

当服务器作为Octopus Deploy流程的一部分运行时,UI测试在服务器上失败。 如果您手动执行脚本(与Octopus Deploy进程相同的脚本和用户),则测试将在本地dev中运行,并在服务器上运行。

我能看到的唯一区别是,一个作为触手脚本执行的一部分而无头运行,而另一个则没有。

我们收到以下错误:

触手脚本执行OpenQA.Selenium.ElementNotVisibleException:不显示元素

我可以通过将IE Web驱动程序的选项更改为以下方式在本地开发人员中重新创建此错误:

var options = new InternetExplorerOptions();
options.RequireWindowFocus = false;
var webDriver = new InternetExplorerDriver(options);

导致该问题的元素是Kendo移动按钮:

<a data-role="button" data-rel="drawer" id="searchIcon" href="#searchDrawer" data-icon="search" data-align="left"></a>

Tentacle Windows服务默认情况下在本地系统下运行,但没有任何UI。 您需要授予服务与桌面交互的能力。 以下链接可能会有所帮助:

http://lostechies.com/keithdahlby/2011/08/13/allowing-a-windows-service-to-interact-with-desktop-without-localsystem/

所有区域的保护模式必须相同。 请参阅以下网址的答案: https : //stackoverflow.com/a/11123960/200824

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM