Hi ,
i finally resolved to start Firefox Portable with the gecko driver.
Now i have the following problem :
final FirefoxProfile firefoxProfile = new FirefoxProfile(new File(config.getFf_profile()));
final FirefoxBinary firefoxBinary = new FirefoxBinary(new File(config.getFf_path()));
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(FirefoxDriver.PROFILE, firefoxProfile);
capabilities.setCapability(FirefoxDriver.BINARY, firefoxBinary);
capabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.IGNORE);
System.setProperty("webdriver.gecko.driver", config.getGeckodriver_path());
driver = new FirefoxDriver(capabilities);
driver.manage().window().maximize();
driver.get(this.url);
If i start this , the test program never passes behind the line
driver = new FirefoxDriver(capabilities);
It just starts FirefoxPortable and show me my profile directory. It didnt start the url the driver get later. Also i get no timeout nothing.
Gecko show following log :
Apr 19, 2017 5:22:11 PM org.openqa.selenium.firefox.FirefoxOptions toCapabilities
INFORMATION: Preferring the firefox binary in these options (C:\cubic_test\FirefoxPortable\FirefoxPortable.exe rather than /cubic_test/FirefoxPortable/FirefoxPortable.exe)
Apr 19, 2017 5:22:11 PM org.openqa.selenium.firefox.FirefoxOptions toCapabilities
INFORMATION: Preferring the firefox binary in these options (C:\cubic_test\FirefoxPortable\FirefoxPortable.exe rather than null)
1492615331855 geckodriver INFO Listening on 127.0.0.1:24078
1492615349341 mozprofile::profile INFO Using profile path C:\Users\201056\AppData\Local\Temp\rust_mozprofile.A2CYtIiDc5Ub
1492615350463 geckodriver::marionette INFO Starting browser C:\cubic_test\FirefoxPortable\FirefoxPortable.exe with args []
1492615350481 geckodriver::marionette INFO Connecting to Marionette on localhost:62883
There is no "Marionette INFO Listening on port 62883" after that ...
If i remove binary and profile caps , my test program starts the default firefox and then connect the url. Just FirefoxPortable make some problems :)