-2
我發送一個datapool
變量值MCAS
區域的正則表達式值爲(dotstar)000045(dotstar) 但我無法使用此正則表達式RDist
與select
。方法select(字符串)不適用於參數(RegularExpression)
我收到以下錯誤信息:
在類型SelectGuiSubitemTestObject的方法選擇(字符串)不適用的參數(正則表達式)
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();
}
}
'dpString()'??? –