yandex / YandexDriver

YandexDriver is a WebDriver implementation
Other
66 stars 14 forks source link

Extensions cannot be installed with yandex driver #9

Closed Phlegethonyarre closed 2 years ago

Phlegethonyarre commented 3 years ago

Platform: win/unix Extension: Any (Crypto Pro Cades for example) Tools: java + selenide (selenium) Yandexdriver version: latest (yandexdriver-21.3.0.673) Code example:

@ParametersAreNonnullByDefault
public class CustomWebDriverProvider implements WebDriverProvider {

    @Override
    @CheckReturnValue
    @Nonnull
    public ChromeDriver createDriver(DesiredCapabilities capabilities) {
        ChromeOptions options = new ChromeOptions();
        options.addArguments("load-extension=driver/epebfcehmdedogndhlcacafjaacknbcm/1.2.8_0/");
//     options.addExtensions(new File("driver/epebfcehmdedogndhlcacafjaacknbcm-1.2.8.crx"));
        return new ChromeDriver(options);
    }
}

Problem: extension does not appear as installed in any way. Tested with chromedriver and operadriver. Both ways of installing work well with these drivers, but not with yandexdriver.

AleksKarl commented 2 years ago

Hi I have the same problem, have you made any progress on this issue?

PetrovVadim commented 2 years ago

Hello! You can use beta version of Yandex.Browser: https://browser.yandex.ru/beta/ We decided that it isn't secure to allow to install extensions in production version.