I am trying to write e2e tests for a Slack bot and while logging in via browser it always asks whether I'd like to use the Slack desktop app instead of continuing with the browser (its Chrome by the way). Steps the Selenium webdriver is performing:
- Visit
https://company-name.slack.com - Fill in the
emailandpassword - Click
Sign Inbutton - Then this shows up:
This is not a normal browser alert but I'd like to get rid of it. I have tried the following:
webdriver.switch_to.alert.dismiss()Does not dismiss this pop-up- Adding the
chrome_options.add_argument('--disable-default-apps')switch also doesn't prevent the pop-up from showing - Have tried the headless version as well, test failure suggests that the pop-up interrupted the flow.
This also has to work on CI servers so please if the solution didn't involve modifying developer machine then that would be wonderful.
