tests/testthat/test-chromote_session.R

test_that("respawning preserves targetId and auto_events", {
  skip_if_no_chromote()

  sess1 <- create_session(auto_events = FALSE)
  sess2 <- sess1$respawn()

  expect_equal(sess1$get_target_id(), sess2$get_target_id())
  expect_equal(sess1$get_auto_events(), sess2$get_auto_events())
})

Try the chromote package in your browser

Any scripts or data that you put into this service are public.

chromote documentation built on Sept. 11, 2024, 7:21 p.m.