Fill html fields
Closed this issue · 5 comments
Dear all,
This looks like a stupid question but is it possible to enter values in form fields using chromote. That way, we could use it as e.g. Selenium or cypress.
Many thanks for your help,
Sylvain
It is possible to do this with chromote, in the sense that chromote wraps the entire Chrome DevTools Protocol. Unfortunately, it's definitely a bit tedious and requires a lot of boilerplate code to use Chrome's devtools.
Conceptually, shinytest2 is more aligned with cypress, but clearly with a focus on testing Shiny apps rather than driving Chrome. If you have examples of an API that you really like, please share! I'm certainly interested in thinking about tooling that that makes this all easier.
shinytest2 is indeed a really nice tool I wanted to make it work on a shiny web application that is made available via shinyproxy which seems impossible (I spent quite a few hours on that).
This is why I wanted a bit more "high level" implementation of my tests (login and / or different shiny text input fields) by using the library chromote which (if I understood correctly) is used by shinytest2.
I would be happy to hear about any insight you could give me.
Thank you for your really nice job with chromote.
Sylvain
Hi @ashbythorpe. Interesting, I will have a look at it in the coming days. Thank you for telling me!
I'm closing this issue because chromote will remain a low level packages that other package build on top of to provide a user-friendly interface.