Hi, i am using codeceptJS with webdriver Selenium standalone server. my problem is how do i load my unpacked chrome extension when i run tests. i’ve been searching for the solution from past 4 hours but couldn’t find a solution.
@furqan to load a custom extension in chrome you need to handle that in the browser capabilities like so:
browser: 'chrome',
desiredCapabilities: {
'goog:chromeOptions': {
args: [
'--disable-gpu',
'--no-sandbox',
'--disable-setuid-sandbox',
'--ignore-certificate-errors',
'--load-extension=/path/to/your/unpacked/extension'
// uncomment the following line if you need the browser console
// '--auto-open-devtools-for-tabs',
],
},
selenoidOptions: {
enableVNC: true,
enableLog: true,
logName: 'session-log.log',
sessionTimeout: '10m',
hostsEntries: [
'some host entries here',
],
},
},
2 Likes
thank you very much @unreal2frag