1

I am working on an angular web app that works in conjunction with a chrome extension. While trying to test the installation of the extension (using protractor) I have become blocked. I cannot find anything on clicking the chrome generated modal (see example attachment) to install the extension. Any insight?

Example of the type of modal tat I am baffled by

TheCulprit
  • 127
  • 1
  • 8

1 Answers1

2

No, this dialog is out of Selenium's and hence Protractor's control. What you can do is to start Chrome with pre-loaded extension. Please see this answer for additional information.

Or/and, you can disable the popup and allow Chrome to install extensions silently without a prompt via the --prompt-for-external-extensions flag.

Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
  • Thanks for the reply...I have preloading the extension covered. I am actually testing the web app launching the "install extension" modal and seeing whether or not it has been installed after the click. pre-loading it defeats the purpose of the test. – TheCulprit Aug 24 '16 at 22:25
  • 1
    @TheCulprit gotcha, then, you can avoid this popup altogether and allow silent installation of an extension, updated the answer. Hope that helps. – alecxe Aug 24 '16 at 22:33
  • That might meet my needs. Thanks for the help! – TheCulprit Aug 24 '16 at 22:42