0

I am working on automating a Chrome extension installation using Selenium WebDriver. I know

    ChromeOptions options = new ChromeOptions();
    options = new ChromeOptions();
    options.addArguments("--load-extension=" + pluginDir);
    capabilities.setCapability(ChromeOptions.CAPABILITY, options);

works fine. But I would like to do it other way by interacting with the dialog that appears shown below.

Currently, I am not able to interact with the dialog, no right click is allowed to see the web elements on the dialog.

enter image description here

How can I handle the dialog or can it be automated? What kind of dialog is that?

halfer
  • 19,824
  • 17
  • 99
  • 186
ChanChow
  • 1,346
  • 7
  • 28
  • 57
  • @rob-w could you answer my question to how is the dialog implemented but not how to work around. – ChanChow Sep 08 '15 at 19:47
  • That dialog is implemented in https://cs.chromium.org/file%3Aextension_install_prompt.cc. Chrome does not support a way to click on the dialog, so you can only use work-arounds (either mocking the installation, or dispatching GUI events; see linked question). – Rob W Sep 08 '15 at 19:53
  • this makes more sense. Thanks – ChanChow Sep 08 '15 at 21:00

0 Answers0