无法在每次启动应用程序时查找ID更改的Web Frame Control [英] Failed to Find a Web Frame Control whose ID changes everytime you launch the application
问题描述
您好
我的点击操作失败(播放无法点击控件,因为它无法找到它)
所以我在控制上取十字架,我看到这些属性:
属性  价值
- >搜索
NAME              ms_id977_f
ID                      ms_id977_f
  TageName      IFRAME
 控制类型 框架
 技术名称 网站
- >控件具体
班级
HelpText
标记实例 3
标题
AccessKey
控制定义 风格= QUOT; WIDTH:1242px; HEIGHT:862px" id = ms_id977_f name = ms_id977_f Scrolling = No application =" yes"
网页网址
绝对路径
可滚动        错误
- >通用
的ClassName       HTMLFrame
友好名称 ms_id977_f
有焦点 错误
存在                    真实
启用                 真实
IsTOpParent       错误
由设计器文件中的Coded UI构建器为此点击生成的代码:
[GeneratedCode(" Coded UITest) Builder"," 10.0.40219.1")]&
公开课UIMs__id977_fFrame:HtmlIFrame
{
public UIMs__id977_fFrame(UITestControl searchLimitContainer):
base(searchLimitContainer)
{
#region搜索标准
this.SearchProperties [HtmlFrame.PropertyNames.Id] =" ms__id977_f";
this.SearchProperties [HtmlFrame.PropertyNames.Name] =" ms__id977_f" ;;
this.FilterProperties [HtmlFrame.PropertyNames.AbsolutePath] = null;
this.FilterProperties [HtmlFrame.PropertyNames.PageUrl] = null;
this.FilterProperties [HtmlFrame.PropertyNames.Title] = null;
this.FilterProperties [HtmlFrame.PropertyNames.Class] = null;
this.FilterProperties [HtmlFrame.PropertyNames.ControlDefinition] =" style = \" WIDTH:1242px;高度:862px \" id =" ;;
this.FilterProperties [HtmlFrame.PropertyNames.TagInstance] =" 3"; $
this.WindowTitles.Add("肖像基金会:联络中心");
#endregion
}
现在我每次登录应用程序时此帧ID都会发生变化,所以我输入搜索属性ID包含"ms"而是UIMs_id977_fFrame"但是如果我在这个Frame所在的页面上找到UI控件,它会向我显示消息"所选控件无法突出显示
,因为它隐藏了"现在还有其他框架,我也使他们的搜索属性通用,所以我不确定它是否试图找到一个不同的框架。
请帮助谢谢
fahad
fahad
您好
我的点击操作失败(播放无法点击控件,因为它无法找到它)
所以我在控制上采取交叉,我看到这些属性:
属性   ;       价值
- >搜索
NAME              ms_id977_f
ID                      ms_id977_f
  TageName      IFRAME
 控制类型 框架
 技术名称 网站
- >控件具体
班级
HelpText
标记实例 3
标题
AccessKey
控制定义 风格= QUOT; WIDTH:1242px; HEIGHT:862px" id = ms_id977_f name = ms_id977_f Scrolling = No application =" yes"
网页网址
绝对路径
可滚动        错误
- >通用
的ClassName       HTMLFrame
友好名称 ms_id977_f
有焦点 错误
存在                    真实
启用                 真实
IsTOpParent       错误
由设计器文件中的Coded UI构建器为此点击生成的代码:
[GeneratedCode(" Coded UITest) Builder"," 10.0.40219.1")]&
公开课UIMs__id977_fFrame:HtmlIFrame
{
public UIMs__id977_fFrame(UITestControl searchLimitContainer):
base(searchLimitContainer)
{
#region搜索标准
this.SearchProperties [HtmlFrame.PropertyNames.Id] =" ms__id977_f";
this.SearchProperties [HtmlFrame.PropertyNames.Name] =" ms__id977_f" ;;
this.FilterProperties [HtmlFrame.PropertyNames.AbsolutePath] = null;
this.FilterProperties [HtmlFrame.PropertyNames.PageUrl] = null;
this.FilterProperties [HtmlFrame.PropertyNames.Title] = null;
this.FilterProperties [HtmlFrame.PropertyNames.Class] = null;
this.FilterProperties [HtmlFrame.PropertyNames.ControlDefinition] =" style = \" WIDTH:1242px;高度:862px \" id =" ;;
this.FilterProperties [HtmlFrame.PropertyNames.TagInstance] =" 3"; $
this.WindowTitles.Add("肖像基金会:联络中心");
#endregion
}
现在我每次登录应用程序时此帧ID都会发生变化,所以我输入搜索属性ID包含"ms"而是UIMs_id977_fFrame"但是如果我在这个Frame所在的页面上找到UI控件,它会向我显示消息"所选控件无法突出显示
,因为它隐藏了"
请帮助谢谢
Hi
My click Operation is Failing ( playback is not able to click control as its cant find it)
SO I take the cross on Control and i see these properties:
Property Value
->Search
NAme ms_id977_f
ID ms_id977_f
TageName IFRAME
Control Type Frame
Technology Name Web
->Control Specific
Class
HelpText
Tag instance 3
Title
AccessKey
Control Definition style="WIDTH:1242px; HEIGHT:862px" id=ms_id977_f name=ms_id977_f Scrolling=No application="yes"
Page URL
Absolute Path
Scrollable False
->Generic
ClassName HTMLFrame
Friendly Name ms_id977_f
Has Focus False
Exists True
Enabled True
IsTOpParent False
Code generetaed by Coded UI builder in designer File for this Click :
[GeneratedCode("Coded UITest Builder", "10.0.40219.1")]
public class UIMs__id977_fFrame : HtmlIFrame
{
public UIMs__id977_fFrame(UITestControl searchLimitContainer) :
base(searchLimitContainer)
{
#region Search Criteria
this.SearchProperties[HtmlFrame.PropertyNames.Id] = "ms__id977_f";
this.SearchProperties[HtmlFrame.PropertyNames.Name] = "ms__id977_f";
this.FilterProperties[HtmlFrame.PropertyNames.AbsolutePath] = null;
this.FilterProperties[HtmlFrame.PropertyNames.PageUrl] = null;
this.FilterProperties[HtmlFrame.PropertyNames.Title] = null;
this.FilterProperties[HtmlFrame.PropertyNames.Class] = null;
this.FilterProperties[HtmlFrame.PropertyNames.ControlDefinition] = "style=\"WIDTH: 1242px; HEIGHT: 862px\" id=";
this.FilterProperties[HtmlFrame.PropertyNames.TagInstance] = "3";
this.WindowTitles.Add("Portrait Foundation : Contact Centre");
#endregion
}
please help thanks
fahad
fahad
Hi
My click Operation is Failing ( playback is not able to click control as its cant find it)
SO I take the cross on Control and i see these properties:
Property Value
->Search
NAme ms_id977_f
ID ms_id977_f
TageName IFRAME
Control Type Frame
Technology Name Web
->Control Specific
Class
HelpText
Tag instance 3
Title
AccessKey
Control Definition style="WIDTH:1242px; HEIGHT:862px" id=ms_id977_f name=ms_id977_f Scrolling=No application="yes"
Page URL
Absolute Path
Scrollable False
->Generic
ClassName HTMLFrame
Friendly Name ms_id977_f
Has Focus False
Exists True
Enabled True
IsTOpParent False
Code generetaed by Coded UI builder in designer File for this Click :
[GeneratedCode("Coded UITest Builder", "10.0.40219.1")]
Now Everytime I log into Application this Frame id changes , so I put in search properties ID contains "ms" rather UIMs_id977_fFrame" but then if i do locate UI control on the page where this Frame is it shows me message "selected control Cannot be highlighted because its hidden"
public class UIMs__id977_fFrame : HtmlIFrame
{
public UIMs__id977_fFrame(UITestControl searchLimitContainer) :
base(searchLimitContainer)
{
#region Search Criteria
this.SearchProperties[HtmlFrame.PropertyNames.Id] = "ms__id977_f";
this.SearchProperties[HtmlFrame.PropertyNames.Name] = "ms__id977_f";
this.FilterProperties[HtmlFrame.PropertyNames.AbsolutePath] = null;
this.FilterProperties[HtmlFrame.PropertyNames.PageUrl] = null;
this.FilterProperties[HtmlFrame.PropertyNames.Title] = null;
this.FilterProperties[HtmlFrame.PropertyNames.Class] = null;
this.FilterProperties[HtmlFrame.PropertyNames.ControlDefinition] = "style=\"WIDTH: 1242px; HEIGHT: 862px\" id=";
this.FilterProperties[HtmlFrame.PropertyNames.TagInstance] = "3";
this.WindowTitles.Add("Portrait Foundation : Contact Centre");
#endregion
}please help thanks
这篇关于无法在每次启动应用程序时查找ID更改的Web Frame Control的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!