app <- ShinyDriver$new("../../", shinyOptions = list(test.mode = TRUE))
app$snapshotInit("specify_two_patches")
app$setInputs(overallhelpfake = "click")
app$setInputs(moredetailfake = "click")
app$setInputs(downloadreportfake = "click")
app$setInputs(introfake = "click")
app$findElement('button[data-dismiss]')$click() #closes the modal
app$setInputs(`patch-patch_selector-choose_n_patches` = "click")
Sys.sleep(1)
app$snapshot()
app$setInputs(`patch-patch_selector-n_patches` = "2")
Sys.sleep(1)
app$snapshot()
app$setInputs(`patch-patch_selector-choose_n_patches_execute` = "click")
Sys.sleep(1)
app$snapshot()
# specify patch 1
app$setInputs(`patch-patch_number_1` = "click")
app$setInputs(`patch-choose_patch_attributes_execute` = "click")
Sys.sleep(1)
app$snapshot()
# specify and capture modal of patch 2
app$setInputs(`patch-patch_number_2` = "click")
Sys.sleep(1)
app$snapshot()
app$setInputs(`patch-choose_patch_attributes_execute` = "click")
Sys.sleep(1)
app$snapshot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.