简体   繁体   中英

Can't test a remote HTML/CSS/JS/Java website with Cucumber + Selenium Webdriver + Chrome + Capybara

I'm trying to test with Cucumber + Selenium + Capybara a remote HTML/CSS/JS website which uses a Java . The website works fine on the Chrome browser, but when I launch my test, the Chrome browser is launched on the website, but the Java applet is not loaded at all.

Looks like the Chrome browser environment launched by Webdriver does not load any third party chrome plugins like Java.

Is there any way to circumvent this ?

Thanks in advance, best regards

Geoffroy

You can maybe try Selenium Remote Control instead of Webdriver. I haven't personally tried Selenium RC with third party tools, but it could an option to try while you're looking for alternatives.

You can load a custom profile with the following code:

DesiredCapabilities capabilities = DesiredCapabilities.chrome(); capabilities.setCapability("chrome.switches", Arrays.asList("--user-data-dir=/path/to/profile/directory")); WebDriver driver = new ChromeDriver(capabilities);

See the selenium chrome documentation: http://code.google.com/p/selenium/wiki/ChromeDriver

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM