I am working with an older version of an automation script that logs into a page and runs tests.
We want to change the classic selenium constructor to a WebDriverBackedSelenium constructor in order to do some more involved testing.
Our original constructor call was:
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "https://asdffdsa.com/");
How do I set the WebDriverBackedSelenium constructor with the same parameters? The API shows that we need to set the constructor as:
seWebDriver = new WebDriverBackedSelenium(driver, "https://asdffdsa.com");
There doesn't seem to be any indication about where the selenium server is running, what port, and what browser.
Currently using the following code:
driver = new FirefoxDriver();
seWebDriver = new WebDriverBackedSelenium(driver, "https://www.asdfdfdfsfs.com");
seWebDriver.open("/");
Just now noticing that I'm getting the following error:
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: * LOG addons.manager: Application has been upgraded LOG addons.xpi: startup LOG addons.xpi: Skipping unavailable install location app-system-share LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /var/folders/pf/hvzyf38x59vfbgf8zpvw5v800000gn/T/anonymous2501560210712840923webdriver-profile/extensions/webdriver-staging LOG addons.xpi: checkForChanges LOG addons.xpi-utils: Opening database LOG addons.xpi-utils: Creating database schema LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile Blocklist::_loadBlocklistFromFile: blocklist is disabled LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global LOG addons.xpi: Updating database with changes to installed add-ons LOG addons.xpi-utils: Updating add-on states LOG addons.xpi-utils: Writing add-ons list LOG addons.manager: shutdown LOG addons.xpi: shutdown LOG addons.xpi-utils: shutdown LOG addons.xpi-utils: Database closed LOG addons.xpi: startup LOG addons.xpi: Skipping unavailable install location app-system-share LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /var/folders/pf/hvzyf38x59vfbgf8zpvw5v800000gn/T/anonymous2501560210712840923webdriver-profile/extensions/webdriver-staging LOG addons.xpi: checkForChanges * LOG addons.xpi: No changes found