IBM Rational Functional Tester - Descriptive Programming Code to refresh a web page.
public void RefreshPage(){
try{
RootTestObject t = getRootTestObject();
TestObject[] Objects = t.find(SubitemFactory.atDescendant(
".class","Html.HtmlBrowser.ToolbarButton",".name","Reload"));
GuiTestObject btnReload = new GuiTestObject(Objects[0]);
btnReload.click();
}catch(Exception e){
logTestResult("Exception :" +e.getMessage()+" in keyword Page Refresh",false);
}
}
}
No comments:
Post a Comment