To add WebDriver functionality to an existing Silk4J script, you can create a mixed script. To create such a mixed script, use the Open Agent as a Selenium server which is activated when a Silk4J base state is executed.
BrowserApplication browserApplication = desktop.find("//BrowserApplication"); WebDriver driver = browserApplication.getWebDriver();
BrowserWindow browserWindow = desktop.find("//BrowserWindow"); WebDriver driver = browserWindow.getWebDriver();
driver.get("http://demo.borland.com/InsuranceWebExtJS/"); driver.findElementById("login-form:login");When you execute the script, all Selenium and Silk4J actions, along with any screenshots and parameters, are logged to the TrueLog.