4

Hello all the selenium experts out there!

Using WebDriverJS and ChromeDriver, I am currently building an automated tests for extension installation process on chrome, but I cannot click the button inside Chrome Extension Installation Popup, which looks like this: Chrome Extension Installation Popup

(I am not related to Right Inbox. This is just an image I found on Google)

I tried the following, but it did not work since it is not an alert box:

driver.switchTo().alert().accept();

Is there a way to click that red-circled Add button in the image above?

haejeong87
  • 847
  • 1
  • 10
  • 20
  • Sure, if you visit http://www.rightinbox.com/install-for-chrome, and click `Add to Chrome`, you will get this dialog. It is a Chrome Dialog for installing extensions. – haejeong87 Aug 29 '13 at 01:37
  • It seems like, this is not possible using selenium alone... – haejeong87 Aug 30 '13 at 23:59
  • Have you looked into using desktop automation tools? – Seanny123 Sep 02 '13 at 07:14
  • @Seanny123 Thanks for your comment. I have used AutoHotKey and Sikuli's and other macro programs before, but not in this project. I just wanted to know if it is possible to do it using Selenium, but it doesn't seem possibe... – haejeong87 Sep 02 '13 at 08:59
  • Have you tried using [pyatom](https://github.com/pyatom/pyatom)? I had the same problem but for Ubuntu. I [solved it using ldtp](http://stackoverflow.com/questions/26897773/how-to-accept-the-popup-presented-when-installing-extension-in-selenium) – TheRookierLearner Nov 22 '14 at 04:14
  • See https://github.com/Rob--W/testing-chrome.webstore.install – Rob W Feb 22 '15 at 18:48

1 Answers1

0

After exploring, I am convinced that this is not possible in Selenium 2.0

haejeong87
  • 847
  • 1
  • 10
  • 20
  • You can use Selenium 2.0 for testing Chrome extension. The similar problem I got during writing tests. Check this article http://releasematic.wordpress.com/2013/12/29/automation-testing-chrome-extensions/ Hope it helps. – Bob Meliev Apr 07 '14 at 08:50
  • @Bob No, it doesn't: this question is about confirming an inline install, not interacting with the extension itself. – Xan Feb 22 '15 at 12:25
  • Did you try to load unpacked extension from chrome://extensions/ ? – Bob Meliev Feb 22 '15 at 22:50