Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_timeout not working #375

Open
sybrohee opened this issue Mar 12, 2024 · 0 comments
Open

load_timeout not working #375

sybrohee opened this issue Mar 12, 2024 · 0 comments

Comments

@sybrohee
Copy link

sybrohee commented Mar 12, 2024

Dear all,

I suppose I am the cause of the issue or I did not understand how to make it work but I have a shiny app that makes use of a lot of libraries taking a lot of time to be loaded and the default chromote timeout of 10 seconds in not enough. I always get the following issue.

ℹ AppDriver logs:
{shinytest2} R info   14:25:15.33 Start AppDriver initialization
{shinytest2} R info   14:25:15.33 Starting Shiny app
{shinytest2} R info   14:25:15.98 Creating new ChromoteSession
{shinytest2} R info   14:25:16.06 Setting window size: 899x1619
{shinytest2} R info   14:25:16.06 Setting window size to `1619`x`899`
{shinytest2} R info   14:25:16.07 Navigating to Shiny app
{shinytest2} R info   14:25:26.07 Error while initializing AppDriver:
                                  Chromote: timed out waiting for response to command Page.navigate

It seems that after 10 seconds, the app is interrupted and I cannot test it.

I tried using a lot of ways (environment variables, parameters in new()) but whathever I try, it does not seem to change anything. Am I the only one experiencing this issue. Do I do something wrong when updating the values of load_timeout and timeout in when initialzing the AppDriver?

Here is how I start the AppDriver. From my understanding, to timeout shoud now be 13, but the options does not change anything.


  app <- AppDriver$new(
    name = "myapp",
    height = 899, width = 1619,
    view = F,
    expect_values_screenshot_args = FALSE,
    load_timeout = 13000,
    timeout = 13000
  )

Many thanks for your insights

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant