You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up on rstudio/chromote#129, there are two things that shinytest2 can do:
When selector = "viewport", shinytest2 can set captureBeyondViewport = FALSE for chromote's screenshot method.
When selector = "scrollable_area", shinytest2 could query Chrome to determine how big the scrollable area is, then resize the viewport to match that size before screenshotting with captureBeyondViewport = FALSE, followed by restoring the viewport size.
Following up on rstudio/chromote#129, there are two things that shinytest2 can do:
When
selector = "viewport"
, shinytest2 can setcaptureBeyondViewport = FALSE
for chromote's screenshot method.When
selector = "scrollable_area"
, shinytest2 could query Chrome to determine how big the scrollable area is, then resize the viewport to match that size before screenshotting withcaptureBeyondViewport = FALSE
, followed by restoring the viewport size.This option is more or less the pattern used by puppeteer, mentioned in
ChromoteSession$screenshot()
triggers a page resize before screenshot. chromote#96 (comment).The text was updated successfully, but these errors were encountered: