1

I am using Selenium WebDriver with ChromeDriver to install an extension as follows:

browser = Selenium::WebDriver.for :chrome, args: ["--load-extension=#{path_to_extension}"]

I can observe visually that the extension is indeed installed successfully.

However, I want to write an assertion for the same, something like the following:

expect { browser.extension_is_intalled(extension_id) }.to be_true

How do I do that?

Sujoy Gupta
  • 1,424
  • 1
  • 10
  • 12
  • It's [impossible with Firefox](http://stackoverflow.com/questions/6768425/how-to-access-firefox-extension-i-added-in-selenium-webdriver), not a big chance it's different with Chrome – Oleg Mikheev Jan 03 '14 at 03:08

0 Answers0