rstudio / shinytest

Automated testing for shiny apps
https://rstudio.github.io/shinytest/
Other
225 stars 55 forks source link

In `initialize()`, wait for navigation #388

Closed wch closed 3 years ago

wch commented 3 years ago

This fixes a problem with using phantomjs 2.5.0-beta on Windows:

Error in session_makeRequest(self, private, endpoint, data, params, headers): Detected a page unload event; asynchronous script execution does not work across page loads.

This PR makes $initialize() to wait until the browser actually navigates to the page before continuing.