Micro Focus is proud to announce the release of a new Silk WebDriver version!
What's new in Silk WebDriver
Silk WebDriver now supports the following new features:
Customization of Recording
Creating good identifiers for the items in your application under test is challenging. While Silk WebDriver uses sophisticated strategies to automatically generate the best possible locators and object map entry names during recording, these might not always cover your specific requirements. For example, the generated locator might not include an attribute that you want to be included, and the automatically generated object map entry for a recorded object might be difficult to read or might contain special characters. You can now edit the locator and the object map entry for web controls directly from the recording UI.
Enhanced Support for Special Keys
You can now enter special keys between angled brackets during recording. For example <back_space> or <enter>.
New Browser Versions
Silk WebDriver now supports testing web applications in Mozilla Firefox 60 and in Google Chrome 67.
For additional information about Silk WebDriver, visit the product page.
.NET Core brings the power of C# and VB.NET to macOS and Linux. Thanks to the hard work by the teams at Microsoft and the efforts of the Selenium Community, it is now even possible to run WebDriver tests in C# or VB.NET directly on your Mac! In this blog post we will show you how.
After you have installed .NET Core, Visual Studio Code, and Silk WebDriver, it is time to set up your first .NET Core testing project. Create a new folder, for example on the desktop, and open that folder with Visual Studio Code. Open the Integrated Terminal by selecting View > Integrated Terminal and use the following command to actually create the project:
$ dotnet new mstest
This will create a .csproj file as well as an empty unit test which you can run with the following command:
$ dotnet test
If everything is set up correctly, .NET Core should compile and run the empty test:
Even more convenient is that you can run the test directly from Visual Studio Code. If you are prompted to install additional components for Visual Studio Code to enable this feature, do so.
Now it is time to record a Selenium test which you can later run in the context of your test project. Start Silk WebDriver, click Record, select the browser of your choice, and specify the URL of the application that you want to test:
Use the intuitive point-and-click recorder to record actions against your web app. You can also replay the recorded actions during recording to make sure that you have correctly captured the desired workflow.
When you are done with recording, select C# Unit Testing from the list of available export languages in Silk WebDriver:
Click Export… in the Silk WebDriver menu and specify a file name. Make sure that you export the file into the folder with the .NET Core project that you have previously created.
You can now close Silk WebDriver and switch back to Visual Studio Code.
Back in Visual Studio Code you should see that the project with the two unit test files now has some unresolved compile errors:
This is because you have not specified yet that you require the Selenium libraries for your project. Open the integrated terminal again and use the following commands to add those references:
Today marks an important milestone in the history of Silk WebDriver: Micro Focus is proud to announce the general availability of Silk WebDriver for macOS!
This is an important step for Silk WebDriver and also a remarkable date for Silk Test and our overall cross-browser/platform strategy. Moving away from being a pure Windows-based solution has started with the new Silk Test capabilities to test Safari and iOS devices. With porting Silk WebDriver to macOS, we now for the first time provide users with a way to design, record, and replay a functional test script on macOS, without the need of having anything installed on a Windows machine. And this is just the beginning...