Maybe it is a bad habbit of mine, however I use to have .'s in my shiny input names fx: actionButton("inp.go","GO"). However shinytest cannot find those inputs if I ask to getValue("inp.go") however it does appear if i request getAllValues(). I'm geussing it was to do with css syntax. Is this a conscious choise for shinytest and can I somehow get around it?
library(shinytest)
library(shiny)
ui <- fluidPage(
actionButton("inp.go","GO WITH DOTS")
,actionButton("inp-go","GO WITH HYPHEN")
,actionButton("inp_go","GO WITH UNDERSCORE")
,actionButton("inp@go","GO WITH ALPHAKRÜL")
,actionButton("inp#go","GO WITH ALPHAKRÜL")
)
server <- function(input, output, session) {}
app <- shinytest::ShinyDriver$new(shinyApp(ui, server))
app$getAllValues()
app$getValue("inp.go") # cannot find
app$getValue("inp-go") # works
app$getValue("inp_go") # great succes
app$getValue("inp@go") # DOM fail
app$getValue("inp#go") # cannot find
app$finalize()
Maybe it is a bad habbit of mine, however I use to have .'s in my shiny input names fx:
actionButton("inp.go","GO")
. However shinytest cannot find those inputs if I ask togetValue("inp.go")
however it does appear if i requestgetAllValues()
. I'm geussing it was to do with css syntax. Is this a conscious choise for shinytest and can I somehow get around it?sessioninfo: