Selenium/WebDriver Bindings

Selenium/WebDriver  for  Java Testing

MarathonITE provides Selenium for Java testing and WebDriver for Java testing. MarathonITE enables access to Selenium/WebDriver Java bindings to your scripts for Java/Swing or Java/FX testing. This extends Selenium/WebDriver bindings for Ruby. When you access a component in MarathonITE using get_component, the object you receive is a WebElement. You can perform any of the standard WebDriver operations on this WebElement. You can use any Selenium/WebDriver calls and intersperse them with MarathonITE calls. This provides your scripts the power and flexibility of Selenium for  Java testing and WebDriver  for  Java testing for implementing complex scenarios.

MarathonITE Java Drivers implement Selenium JSON Wire Protocol

MarathonITE uses marathon java drivers which are part of our open source version. The drivers implement Selenium JsonWireProtocol – the protocol used by WebDriver to communicate with remote instances of Java/Swing™ and Java/FX™ applications for Selinium for Java Testing. Testers who are familiar with Selenium/WebDriver  for Java testing can take advantage of this integration. For Web based applications, MarathonITE uses standard Selenium drivers with enhancements for recording functionality. Marathon WebDriver bindings for Java, Selinium for java testing, web driver for java testing

Extend your scripts with WebDriver bindings

There are things that can be accomplished with WebDriver bindings which, though possible, are cumbersome to perform using MarathonITE. For example, the following script checks that all the text fields within a window contain tooltips attached to them.

Mix and match MarathonITE and WebDriver calls

MarathonITE itself internally uses WebDriver for Java testing to implement script elements like select and click. MarathonITE‘s get_component returns a WebElement and the WebDriver instance is available as driver within the script. You can mix both MarathonITE and WebDriver calls within a single script.

Use CSS to find elements within the application window

MarathonITE implements a CSS finder for Java applications. You can use WebDriver’s find_element(s) call to quickly find a component in the application. MarathonITE maps name and id to component’s name (set through java.awt.Component#setName method) and the tag name is mapped to a modified class name of the component. For example, JTextField has a tag name text-field.