System.out.print("Running:" + TEST_CASE + "\t\t");
final HtmlPage page = (HtmlPage) _webClient.getPage(_url);
FrameWindow menuFrame = page.getFrameByName("fixed");
HtmlPage menuPage = (HtmlPage)menuFrame.getEnclosedPage();
HtmlButtonInput commandButton = (HtmlButtonInput)menuPage.getFormByName("MenuForm").getHtmlElementById("refreshButton");
HtmlPage commandResult = null;
if(commandButton != null){
//System.out.println("command button text:"+commandButton.asText());
commandButton.focus();
//System.out.println("command button script:"+commandButton.getOnClickAttribute());
commandResult = (HtmlPage)commandButton.click();
}
//System.out.println("alerts size:"+collectedAlerts.size());
//if(collectedAlerts.size() > 0){
//for(int i=0; i<collectedAlerts.size(); i++){