To enable Chrome Extension (DotVPN) using selenium Webdriver

84 views
Skip to first unread message

Samuel Yanamala

unread,
Nov 14, 2017, 8:13:23 AM11/14/17
to Selenium Users
Hi
Iam using sel 3.7.1, and java 9.0.1, and ecllipse as oxygen.
My Scenario is to Enable the chrome extension (DotVPN) using selenium webdriver.
I tried with this code,

WebDriver driver = null;
        System.setProperty("webdriver.chrome.driver", "E:/Selenium/Chromedriver/chromedriver.exe" );
        ChromeOptions chromeOptions = new ChromeOptions();
        chromeOptions.addExtensions(new File("E:/Selenium/DotVPN.crx"));
        DesiredCapabilities desiredCapabilities = DesiredCapabilities.chrome();
        desiredCapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
        driver = new ChromeDriver(desiredCapabilities);

With this code iam able to get the extension along with the browser open, but unable to click on extension to provide login details to enable.
Can any one suggest please.
Thanks in advance.
Webpageperformance.class
Reply all
Reply to author
Forward
0 new messages