Key differences between Selenium and Silk: Script generation

Micro Focus Expert
Micro Focus Expert
1 0 836

Welcome to another installment of our series of blog posts in which we will compare different aspects of functional web testing and explore how Selenium, Silk WebDriver, and Silk Test help you to solve any associated problems. This time, we will look at how difficult - or easy - it is to generate test scripts using each of the tools.

Example

As an example we will use our demo application at http://demo.borland.com/InsuranceWebExtJS. The script should only log in to the application with predefined credentials.

Selenium

Since the SeleniumIDE is no longer working with the current versions of Firefox, Selenium script writers have to fall back to the developer tools in modern browsers to help them build their scripts.
In our sample, we used Chrome and Python, but the basic workflow is the same, no matter which browser and programming language you choose.

Note: We use the Chromes DevTools to identify the objects we want to use in our test, then we manually script the find statements and the interactions using the Selenium Python client bindings:

Silk WebDriver

Not only does Silk WebDriver support the latest versions of Chrome, Firefox, and Microsoft Edge for recording tests, it also comes with a user-friendly and intuitive way of recording actions. With only one additional click, your script can be exported to a variety of languages. Additionally, you don't have to take care of choosing a locator strategy, as Silk WebDriver automatically uses the best possible locator for each object you pick:

Silk Test

Silk Test is tightly integrated with IDEs like Eclipse and Visual Studio, hence creating automation scripts in Java and .NET is even easier. Users can start recording right from their IDE and get the generated script in their favorite programming language - all without having to leave their familiar development environment:

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.