context("Sending HTML to web page")
test_that("HTML can be added to the web page", {
openPage(allowedVariables = "a")
sendHTML('<input type = "button" id = "inp" onclick = "jrc.sendData(\'a\', \'click\', false)">')
sendCommand(paste0('document.getElementById("inp").click()'), wait = 3)
expect_equal(a, "click")
closePage()
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.