DOM/rendered html 和 Coded-Ui 有何关联,coded-ui 是否可以在不考虑页面在 DOM 中呈现方式的情况下测试 Web 应用程序?

How are DOM/rendered html and Coded-Ui are related, can coded-ui test a web application without even considering how that page is rendered in DOM?

我想知道网络应用程序中的编码-ui 如何利用该页面的 DOM。或者它与该页面的呈现有关 html 即将到来?

已编辑:如果假设我有一个包含行和列的网格,并且我想捕获其中的任何特定列,那么 coded-ui 会借助渲染的 html进程(id、标记名等)?

您可以使用下面列出的 html 控件 url: https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.uitesting.htmlcontrols.aspx

我使用了 NuGet here 中可用的编码ui jquery 扩展 .将此 dll 添加为参考后,您可以使用 ExecuteScript() 方法为 运行 coded-ui 中的 jquery 脚本。类似地,您可以在成员中使用其他 built。