sanya
(Sanya)
1
Hi, I am getting below error when trying to run for headless chrome:
WebDriver.init() got an unexpected keyword argument ‘service_log_path’
code:
${chrome options}= Evaluate selenium.webdriver.ChromeOptions()
call method ${chrome options} add_argument headlesschrome
call method ${chrome options} add_argument --no-sandbox
call method ${chrome options} add_argument --disable-dev-shm-usage
call method ${chrome options} add_argument --ignore-certificate-errors
Set Global Variable ${global_downloadDir} ${CURDIR}\Downloads\
${disabled} Create List Chrome PDF Viewer
${prefs} Create Dictionary download.default_directory=${global_downloadDir} plugins.plugins_disabled=${disabled}
Call Method ${chrome options} add_argument headlesschrome
Open Browser https://www.google.com/ headlesschrome
set selenium implicit wait 5s
set window size ${1920} ${1080}
maximize browser window
_daryl
(daryl)
2
It would be worth reading through the below, hard to say if they are running in headless though unfortunately.
But you don’t mention that this only happens in headless, and Id hate to assume, but the error do seem to match for what is raised above.
Hopefully this can help in resolving the error