3

Is it possible to test browser extensions with selenium c# in Saucelab. If so how and where to place the latest extension package in saucelab VM so that selenium launches the browser with the extension.

Ankit Chhatbar
  • 334
  • 8
  • 19
Vaish
  • 56
  • 4

1 Answers1

0

For Firefox and chrome it is possible by providing capabilities or profile. For Example in case of firefox:

File file = new File("firebug-1.8.1.xpi"); FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.addExtension(file); firefoxProfile.setPreference("extensions.firebug.currentVersion", "1.8.1"); // Avoid startup screen

WebDriver driver = new FirefoxDriver(firefoxProfile);

user861594
  • 4,526
  • 3
  • 23
  • 39