如何在编码的UI测试中访问broswer实例控件而不需要访问任何URL [英] how to access broswer instance control in coded UI Test without hitting any URL

查看:62
本文介绍了如何在编码的UI测试中访问broswer实例控件而不需要访问任何URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Coded UI Tests自动化Windows应用程序。其中一个场景是Windows应用程序内部我们有Map会话,它纯粹包含webPage broswer控件。 

I am automating the Windows application using Coded UI Tests. One of the scenario was inside the Windows Application we having Map session, its purely contain webPage broswer control. 

如何在不打开任何Broswer和URL的情况下访问Map页面。

How i will access the Map page without opening any Broswer and URL.

任何人都可以给出解决方案吗?

Any one can me give the solutions?

问候

Saravanakumar

Saravanakumar

推荐答案

嗨Saravanakumar

Hi Saravanakumar

我已经处理了很长时间嵌入式浏览器控件,从不考虑测试自动化。

It's been a long time since I've dealt with an embedded browser control and never with regard to test automation.

如果内存服务于嵌入式浏览器,则默认使用所有插件和放大器。延期关闭。  您需要启用"Microsoft Visual Studio UI测试助手对象"至少在测试记录期间延长执行。
 手指越过测试记录器应在Windows Controls& amp; HTML控件。

If memory serves an embedded browser object defaults to having all the plugins & extensions turned off.  You'll need to enable the "Microsoft Visual Studio UI Test Helper Object" extension at least during test recording & execution.  Fingers crossed the test recorder should seamlessly switch between Windows Controls & HTML controls.

HTH

Big Ian


这篇关于如何在编码的UI测试中访问broswer实例控件而不需要访问任何URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆