RSelenium
RSelenium copied to clipboard
Start a private google chrome session with Rselenium
Hi there,
I am trying to set up a script which starts the opening of a private chrome. However, I am unable to do so. Here is what I tried already:
- modifying chrome default profile via the preferences file
- adding an "--incognito" argument via the extraCapabilities argument in rsDriver, see https://stackoverflow.com/questions/27630190/python-selenium-incognito-private-mode
Does anyone have an idea?
my code:
remote_driver<-rsDriver(browser = "chrome", chromever = "113.0.5672.63", verbose = F, port =free_port(), extraCapabilities= list(args = "--incognito"))
remDr <- remote_driver$client
remDr$open()