From: UliScherrer <uli...@gm...> - 2015-05-11 15:45:31
|
Hi, there is a website like this <form id="f1" name="f1" class="af_form" enctype="multipart/form-data" method="POST" action="/webcenter/faces/oracle/webcenter/page/scopedMD/s17f3c4ff_32e3_4ca9_933f_f6142f999d92/Page229.jspx?wc.contextURL=/spaces/gkpExternal&_adf.ctrl-state=10ok9yle5b_4"> ......... <div id="T:pt_pl2" class="navigation-top content-style navigation-level-1 af_panelList initialized-scroll"> <ul> <li value="2" style="display: none;"> Produkte <#> When I click on the anchor "Produkte" I get just the same page, only class of this anchor changed to class="p_AFDisabled p_AFBusy nav-text nav-children" The wanted page does not load. Do I miss something with Cookies or Session? final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_31); webClient.getOptions().setThrowExceptionOnScriptError(false); String website = "https://www.dhl-geschaeftskundenportal.de"; URL url = new URL(website); HtmlPage startPage = (HtmlPage)webClient.getPage(url); String htmlId = "T:sf_topj_id_1:cmds_top_x"; //anchor "Produkte" HtmlAnchor anchor = (HtmlAnchor)startPage.getElementById(htmlId); HtmlPage productPage = anchor.click(); //sorry, no productPage; startPage loaded Uli -- View this message in context: http://htmlunit.10904.n7.nabble.com/oracle-adf-faces-click-delivers-unexpected-page-tp36032.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |