Skip to content

load_timeout not working #375

@sybrohee

Description

@sybrohee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions