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
I've been using the webshot package for some side projects and the capability of taking a screenshot of a particular element with CSS selectors (i.e. with webshot("https://www.r-project.org/", "r-sidebar.png", selector = ".sidebar") is really nice. Is it possible to extend this feature to app$takeScreenshot()?
The text was updated successfully, but these errors were encountered:
I've done some investigation on ways to integrate this feature, but I'm not sure the optimal approach. In case it helps here's what I've found:
shinytest currently relies on webdriver to create screenshots via the takeScreenshot() method. Long ago it looks like there was some work to implement a element selection parameter for the screenshot method in webdriver per rstudio/webdriver#13, but the implementation did not perform as expected.
If there was a way to invokewebshot() on the already running phantomjs session serving the shiny app, then it seems like that could be a solution. Of course I have no idea how difficult it would be to accomplish this.
I've been using the
webshot
package for some side projects and the capability of taking a screenshot of a particular element with CSS selectors (i.e. withwebshot("https://www.r-project.org/", "r-sidebar.png", selector = ".sidebar")
is really nice. Is it possible to extend this feature toapp$takeScreenshot()
?The text was updated successfully, but these errors were encountered: