RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

how to set chrome option -- excludeSwitches

Open amjiuzi opened this issue 6 years ago • 1 comments

how to trans python scripts downstairs into Rselenium version:

option = ChromeOptions()
option.add_experimental_option('excludeSwitches', ['enable-automation'])

my version not works

eCaps <- list(chromeOptions = list(args = c('--excludeSwitches=enable-automation')))

remDr <- remoteDriver(remoteServerAddr='localhost', port=4444L, extraCapabilities = eCaps, browserName='chrome')

errors reperted:

Error: Summary: SessionNotCreatedException Detail: A new session could not be created. Further Details: run errorDetails method

@johndharrison @juyeongkim

amjiuzi avatar Jul 02 '19 08:07 amjiuzi

This works for me:

eCaps <- list(chromeOptions = list(excludeSwitches = list("enable-automation")))

This disables the message that says

Chrome is being controlled by automated test software

when Chrome starts up.

ianmcook avatar Sep 13 '19 18:09 ianmcook