From: kamala <kam...@gm...> - 2008-09-25 06:19:02
|
Hi , I am using htmlunit2.2 . My webpage contains a link on click of that i get a popup window without url. my code to access title text of popup window is as follow. but i am getting exception. code : HtmlForm frmBatchUpdate = pgCurrent.getFormByName("UpdateMultipleProdsForm"); //click on select link to open FulfillmentSiteList window HtmlAnchor btnSelect = (HtmlAnchor) frmBatchUpdate.getOneHtmlElementByAttribute("a","class","cat_btn_small"); // click on 'select' link pgSearchFFSId = (HtmlPage) btnSelect.click(); // FulfillmentSiteListForm is formname of popup window HtmlForm frmFFSList = pgSearchFFSId.getFormByName("FulfillmentSiteListForm"); Exception as follow when trying to getform "FulfillmentSiteListForm" "com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[form] attributeName=[name] attributeValue=[FulfillmentSiteListForm]" Regards Kamala -- View this message in context: http://www.nabble.com/Popup-window-not-recognised-tp19663691p19663691.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |