Help documentation

Use Multiple Drivers in the same project

Twist allows Scenarios to be executed using any Java based driver or a combination of Drivers.

For example, let us say that you want to create a project that uses both Selenium and Frankenstein drivers.
  1. Create the project and choose any one of the drivers, say, Selenium, in the project creation wizard. See Using Selenium with Twist for more on this.
  2. Enhance the project's build path to include the libraries for the other driver. For example, to add Frankenstein driver, Project->Properties-->Java Build Path ->Libraries, Click on Add libraries and select Frankenstein.
Note that any code generation that Twist does will still use the driver that you selected during project creation. In the example above, if you QuickFix an unimplemented Workflow, the generated constructor in the underlying code will still use Selenium as an argument. If you scenario uses both Selenium and Frankenstein, you must configure the Spring initialization mechanism such that it injects Frankenstein driver as well into your code. You will have to edit applicationContext-suite.xml and necessary bean definitions.