I am currently attempting to run some automation scripts using WD.js on the Lambda cloud server. However, I am encountering difficulties with handling a popup. Does anyone have any suggestions or solutions for this issue? Thank you in advance!
Below are my capabilities settings, but they do not seem to be working as intended.
exports.config = {
seleniumHost: 'hub.lambdatest.com',
seleniumPort: 80,
test: '../tests/demo.js',
capabilities: [{
build: "test demo",
name: "work flow",
platform: "Android",
deviceName: "Huawei P20 Pro",
platformVersion: "9",
acceptSslCerts: true,
visual: "true",
browserName: 'chrome',
chromeOptions: {
prefs: {
credentials_enable_service: false,
'profile.password_manager_enabled': false,
'profile.default_content_setting_values.notifications': '2'
},
args: ['--ignore-certificate-errors',
'--disable-features=Translate',
'--disable-popup-blocking',
'--disable-notifications',
'-incognito']
}
}]
}