我发送datapool
变量MCAS
区域的值,其正则表达式值为(dotstar)000045(dotstar)
但我无法将此正则表达式RDist
与select
一起使用。
我收到以下错误消息:
SelectGuiSubitemTestObject类型中的方法select(String)不适用于参数(RegularExpression)
try
{
SelectMCASDistrict(dpString("MCAS District"));
}
catch (ObjectNotFoundException e)
{
logInfo("MCAS District Not found");
}
public static void SelectMCASDistrict(String Dist)
{
GuiTestObject textObj = findTextObjectDist();
if (textObj != null)
{
RegularExpression RDist = new RegularExpression (Dist, false);
((SelectGuiSubitemTestObject) textObj).select(RDist);
}
else
{
throw new ObjectNotFoundException();
}
}