[HtmlUnit] [htmlunit:bugs] #2023 no more getNewPage() in ScriptResult

RBRi via HtmlUnit-develop <[email protected]> Fri, 06 Sep 2019 18:30:00 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/bugs/2023/fdd68ec217b8017772d3ecb345f21ecc07fcea16.bugs@htmlunit.p.sourceforge.net>
This is a multi-part message in MIME format.
--===============3557003593008397222==
Content-Type: multipart/related;
 boundary="===============4279700551330456001=="

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

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

You can call something like

    page.getWebClient().getCurrentWindow().getEnclosedPage();

In fact the newPage from the result was filled like this, it was not related to the script.


---

** [bugs:#2023] no more getNewPage() in ScriptResult**

**Status:** open
**Group:** 2.36.0
**Created:** Wed Sep 04, 2019 05:04 PM UTC by ChristopheD
**Last Updated:** Wed Sep 04, 2019 05:04 PM UTC
**Owner:** nobody


Hello,

I am migrating from 2.31 to 2.36 and I see that in the class ScriptResult, the method getNewPage() has been removed. What is the startegy to replace getNewPage() and get the page that is loaded at the end of the script execution.

Thank you for your help.

Regards,
Christophe


---

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.
--===============4150517517664533369==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>You can call something like</p>
<div class="codehilite"><pre><span></span><span class="n">page</span><span class="p">.</span><span class="n">getWebClient</span><span class="p">().</span><span class="n">getCurrentWindow</span><span class="p">().</span><span class="n">getEnclosedPage</span><span class="p">();</span>
</pre></div>


<p>In fact the newPage from the result was filled like this, it was not related to the script.</p>
<hr/>
<p><strong> <a class="alink" href="https://sourceforge.net/p/htmlunit/bugs/2023/">[bugs:#2023]</a> no more getNewPage() in ScriptResult</strong></p>
<p><strong>Status:</strong> open<br/>
<strong>Group:</strong> 2.36.0<br/>
<strong>Created:</strong> Wed Sep 04, 2019 05:04 PM UTC by ChristopheD<br/>
<strong>Last Updated:</strong> Wed Sep 04, 2019 05:04 PM UTC<br/>
<strong>Owner:</strong> nobody</p>
<p>Hello,</p>
<p>I am migrating from 2.31 to 2.36 and I see that in the class ScriptResult, the method getNewPage() has been removed. What is the startegy to replace getNewPage() and get the page that is loaded at the end of the script execution.</p>
<p>Thank you for your help.</p>
<p>Regards,<br/>
Christophe</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>
--===============4150517517664533369==--
--===============4279700551330456001==--


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


--===============3557003593008397222==
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

--===============3557003593008397222==--