Hi,
This seems to be an issue, please open a bug ticket.
You can speed help to investigate it, by having a local copy and compare HtmlUnit against real browsers as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html
Ahmed From: UliScherrer <uli...@gm...>
To: htm...@li...
Sent: Monday, May 11, 2015 5:27 PM
Subject: [Htmlunit-user] oracle adf faces - click delivers unexpected page
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
|