".class", ".Pagetablist", ".name", "Ribbon Tabs" ) );
return new TestObject(to[0]);
}
return ribbonButtonGroup;
}
// 从 Ribbon 按钮组中找到 View 按钮
public GuiTestObject getViewButton(){
if( viewButton == null ){
TestObject to[] = getRibbonButtonGroup().find( RationalTestScript.atDescendant(
".class", ".Pagetab", ".name", "View" ) );return new GuiTestObject(to[0]);
}
return viewButton;
}
// 从 Ribbon 按钮组中找到 Home 按钮
public GuiTestObject getHomeButton(){
if( viewButton == null ){
TestObject to[] = getRibbonButtonGroup().find( RationalTestScript.atDescendant(
".class", ".Pagetab", ".name", "Home" ) );return new GuiTestObject(to[0]);
}
return homeButton;
}
文章来源于领测软件测试网 https://www.ltesting.net/