编码UI:如何在IE浏览器以外的地方监视控制对象 [英] Coded UI : How to spy a control object in other than IE browser
问题描述
我正在使用编码的UI开发Web应用程序的脚本,但该应用程序仅支持Chrome和Firfox,它不支持IE,请建议我我怎么能侦察到这个物体。编码的UI构建器不支持其他浏览器进行间谍活动。
I am developing script for a web application using coded UI , but the application will support only Chrome and Firfox , it will not support IE , please suggest me how i can spy the object. Coded UI builder is not supporting other browser for spying .
问候,
Shibin KM
Shibin KM
推荐答案
Hi Shibin,
Hi Shibin,
感谢您发帖。
跨浏览器测试。我们可以将 "BrowserWindow.CurrentBrowser" 设置为"Firefox测试中的"或"Chrome"取决于她在测试资源管理器运行
之前要测试的浏览器。
请安装跨浏览器测试安装程序:
您可以通过
的安装程序 Visual Studio库 (工具 - >扩展和更新... - >在线,Visual Studio库) ,搜索"Selenium组件进行编码UI跨浏览器测试",
点击 下载。
You could through an installer on Visual Studio Gallery (Tools -> Extensions and Updates… -> Online, Visual Studio Gallery), search with "Selenium components for Coded UI Cross Browser Testing", click Download.
请设置浏览器参考下面的示例代码:
BrowserWindow.CurrentBrowser = "chrome";
BrowserWindow.Launch("http://www.bing.com");
有关详细信息,请参阅此链接:
https://marketplace.visualstudio.com/items?itemName=AtinBansal.SeleniumcomponentsforCodedUICrossBrowserTesting
祝你好运,
Fletcher
Fletcher
这篇关于编码UI:如何在IE浏览器以外的地方监视控制对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!