How to enable/allow clipboard permission popups in automated tests with Selenium web driver and JavaScript?
It works as expected when setting is set to 0 and 2 but not when setting is set to 1
- Popup is shown as expected in below case
setProperty(testOptions, 'desiredCapabilities/goog:chromeOptions/prefs/profile.content_settings.exceptions.clipboard', { '*':
{ setting: 0 }
});
- Nothing happens in below case
setProperty(testOptions, 'desiredCapabilities/goog:chromeOptions/prefs/profile.content_settings.exceptions.clipboard', { '*':
{ setting: 1 }
});
- Popup is blocked as expected
setProperty(testOptions, 'desiredCapabilities/goog:chromeOptions/prefs/profile.content_settings.exceptions.clipboard', { '*':
{ setting: 2 }
});