[HtmlUnit] [htmlunit:bugs] #1683 HtmlUnit 2.16 fails to load page on oracle adf faces

RBRi via HtmlUnit-develop <[email protected]> Thu, 07 Mar 2019 20:02:47 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/bugs/1683/1e52aced5fb4b56e31e0bff73fa1159d53cfd5f0.bugs@htmlunit.p.sourceforge.net>
This is a multi-part message in MIME format.
--===============2375345270695265996==
Content-Type: multipart/related;
 boundary="===============5035097164317374030=="

This is a multi-part message in MIME format.
--===============5035097164317374030==
Content-Type: multipart/alternative;
 boundary="===============0466965189123663290=="
MIME-Version: 1.0

--===============0466965189123663290==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Tested again with 2.34.1 but still does not work


---

** [bugs:#1683] HtmlUnit 2.16 fails to load page on oracle adf faces**

**Status:** open
**Group:** 2.16
**Created:** Tue May 12, 2015 10:51 AM UTC by Uli Scherrer
**Last Updated:** Tue May 12, 2015 10:51 AM UTC
**Owner:** nobody


When I click at the website "https://www.dhl-geschaeftskundenportal.de" on the anchor "Produkte" (or other) I did not get the wanted site.
Unfortunately I have no access to the sources of the website. So I am not able to provide a minimal test case.
~~~~~~~
  final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_31);
  webClient.getOptions().setThrowExceptionOnScriptError(false);

  URL url = new URL("https://www.dhl-geschaeftskundenportal.de");
  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


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
--===============0466965189123663290==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>Tested again with 2.34.1 but still does not work</p>
<hr/>
<p><strong> <a class="alink" href="https://sourceforge.net/p/htmlunit/bugs/1683/">[bugs:#1683]</a> HtmlUnit 2.16 fails to load page on oracle adf faces</strong></p>
<p><strong>Status:</strong> open<br/>
<strong>Group:</strong> 2.16<br/>
<strong>Created:</strong> Tue May 12, 2015 10:51 AM UTC by Uli Scherrer<br/>
<strong>Last Updated:</strong> Tue May 12, 2015 10:51 AM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>When I click at the website "https://www.dhl-geschaeftskundenportal.de" on the anchor "Produkte" (or other) I did not get the wanted site.<br/>
Unfortunately I have no access to the sources of the website. So I am not able to provide a minimal test case.</p>
<div class="codehilite"><pre><span></span>  <span class="nt">final</span> <span class="nt">WebClient</span> <span class="nt">webClient</span> <span class="o">=</span> <span class="nt">new</span> <span class="nt">WebClient</span><span class="o">(</span><span class="nt">BrowserVersion</span><span class="p">.</span><span class="nc">FIREFOX_31</span><span class="o">);</span>
  <span class="nt">webClient</span><span class="p">.</span><span class="nc">getOptions</span><span class="o">()</span><span class="p">.</span><span class="nc">setThrowExceptionOnScriptError</span><span class="o">(</span><span class="nt">false</span><span class="o">);</span>

  <span class="nt">URL</span> <span class="nt">url</span> <span class="o">=</span> <span class="nt">new</span> <span class="nt">URL</span><span class="o">(</span><span class="s2">"https://www.dhl-geschaeftskundenportal.de"</span><span class="o">);</span>
  <span class="nt">HtmlPage</span> <span class="nt">startPage</span> <span class="o">=</span> <span class="o">(</span><span class="nt">HtmlPage</span><span class="o">)</span><span class="nt">webClient</span><span class="p">.</span><span class="nc">getPage</span><span class="o">(</span><span class="nt">url</span><span class="o">);</span>

  <span class="nt">String</span> <span class="nt">htmlId</span> <span class="o">=</span> <span class="s2">"T:sf_topj_id_1:cmds_top_x"</span><span class="o">;</span>  <span class="o">//</span><span class="nt">anchor</span> <span class="s2">"Produkte"</span>
  <span class="nt">HtmlAnchor</span> <span class="nt">anchor</span> <span class="o">=</span> <span class="o">(</span><span class="nt">HtmlAnchor</span><span class="o">)</span><span class="nt">startPage</span><span class="p">.</span><span class="nc">getElementById</span><span class="o">(</span><span class="nt">htmlId</span><span class="o">);</span>
  <span class="nt">HtmlPage</span> <span class="nt">productPage</span> <span class="o">=</span> <span class="nt">anchor</span><span class="p">.</span><span class="nc">click</span><span class="o">();</span>  <span class="o">//</span><span class="nt">sorry</span><span class="o">,</span> <span class="nt">no</span> <span class="nt">productPage</span><span class="o">;</span> <span class="nt">startPage</span> <span class="nt">loaded</span>
</pre></div>


<p>Uli</p>
<hr/>
<p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/htmlunit/bugs/">https://sourceforge.net/p/htmlunit/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/bugs/options.">https://sourceforge.net/p/htmlunit/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>
--===============0466965189123663290==--
--===============5035097164317374030==--


--===============2375345270695265996==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2375345270695265996==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop

--===============2375345270695265996==--