Teres Teres - 9 days ago 6
R Question

How to clear history in Rselenium's internal web browser?

In web browsers it is possible to clear history.

How is it possible to clear history in

firefox
browser in
RSelenium
using R commands?

Answer

See Possible to disable firefox and chrome default caching?

In RSelenium and firefox you could pass as follows:

fprof <- makeFirefoxProfile(
  list(
    "browser.cache.disk.enable" = FALSE,
    "browser.cache.memory.enable" = FALSE,
    "browser.cache.offline.enable" = FALSE,
    "network.http.use-cache" = FALSE
  )
)
remDr <- remoteDriver(extraCapabilities = fprof)
remDr$open()
Comments