-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
J-awaiting answerQuestion asked of user; a reply moves it to triage againQuestion asked of user; a reply moves it to triage again
Description
🐛 Bug Report
Test Case
I want to install a custom extension in a Firefox remote web driver. To achieve that I have created a FirefoxProfile and added the custom extension via setExtension. The problem is that the profile I have just created is not added to the Driver instance. Here is the piece of code I have used:
File firefoxExtension = new File("src\\main\\resources\\browser-extensions\\firefox-extension.xpi");
FirefoxProfile profile = new FirefoxProfile();
profile.addExtension(firefoxExtension);
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profile);
capabilities.setCapability(FirefoxOptions.FIREFOX_OPTIONS,options);
try {
return new RemoteWebDriver(new URL("https://" + username + ":" + accessKey + "@"
+ environmentVariables.getProperty("browserstack.server") + "/wd/hub"), capabilities);
} catch (Exception e) {
System.out.println(e);
return null;
}
System
Remote Platform: Windows 10
Firefox version: 68
Selenium: 3.141.59
Selenium Hub: Browser Stack
Expected result
- Browser opened
- Profile loaded with the extension
- Browser can be interacted using RemoteWebDriver
Metadata
Metadata
Assignees
Labels
J-awaiting answerQuestion asked of user; a reply moves it to triage againQuestion asked of user; a reply moves it to triage again