Menu

#2023 no more getNewPage() in ScriptResult

2.36.0
closed
RBRi
None
1
2019-09-07
2019-09-04
ChristopheD
No

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

Discussion

  • RBRi

    RBRi - 2019-09-04

    Will have a look at this at the weekend.

     

    Last edit: RBRi 2019-09-06
  • RBRi

    RBRi - 2019-09-06

    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.

     
    • ChristopheD

      ChristopheD - 2019-09-07

      Thank you !

       

      Last edit: RBRi 2019-09-07
  • RBRi

    RBRi - 2019-09-07
    • status: open --> closed
    • assigned_to: RBRi
     
  • RBRi

    RBRi - 2019-09-07

    Have added a commetn in the relase notes

     

Log in to post a comment.