简体   繁体   English

Telerik命令LaunchNewBrowser()显示空白页

[英]Telerik Command LaunchNewBrowser() displays a blank empty page

We are running Silverlight tests through NUnit on Internet Explorer.The webpage is hosted on a localhost. 我们正在通过Internet Explorer上的NUnit运行Silverlight测试。该网页托管在本地主机上。 There is a testcase where it navigates to the Webpage and tries to login to the site. 有一个测试用例,它可以导航到该网页并尝试登录该站点。 A setup project is which will have an exe file which calls all these test cases. 一个安装项目将具有一个exe文件,该文件调用所有这些测试用例。 If I install this setup project on my development machine and runs the exe as an administrator the tests are passed. 如果我在开发机器上安装此安装项目并以管理员身份运行exe,则测试通过。 But if I install the same setup project in a new machine which has telerik Teststudio, .net 4.6 , silverlight installed, the command times out at the line 但是,如果我在安装了telerik Teststudio,.net 4.6和silverlight的新计算机上安装了相同的安装项目,则该命令将在该行超时
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);

and hence its not able to navigate to the url 因此,它无法导航到网址

ActiveBrowser.NavigateTo(BaseUrl);

Please note that i have not installed VS in this new machine. 请注意,我尚未在这台新机器上安装VS。 My requirement is i should be able to run these test cases without VS. 我的要求是我应该能够在没有VS的情况下运行这些测试用例。 Telerik version is 152.9.23.0. Telerik版本是152.9.23.0。

Your runner may not be able to connect to the newly opened browser and hence the next step which is a navigation is not working. 您的跑步者可能无法连接到新打开的浏览器,因此下一步是导航无法正常工作。 You can try the option for connecting to the new browser window as below: 您可以尝试使用以下选项连接到新的浏览器窗口:

Manager.LaunchNewBrowser(BrowserType.InternetExplorer,true); Manager.LaunchNewBrowser(BrowserType.InternetExplorer,true);

By this coded line, your telerik runner is connected to IE and now you can put your step: ActiveBrowser.NavigateTo(BaseUrl); 通过此编码行,您的telerik运行程序已连接到IE,现在您可以执行以下操作:ActiveBrowser.NavigateTo(BaseUrl);

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

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