Selenium WebDriver Testing Demo
This demo shows how to use Selenium WebDriver for testing a yFiles for HTML web application.
The application under test is the Simple Testable App.
To run the test:
- Start the Demo Server.
- Go to the demo's directory
- Run the test with
npm run test.
The test is run in Chrome and Firefox in headless mode. Please note that the tests will fail if the corresponding browser binaries cannot be found on your system.
Selenium WebDriver is a general-purpose browser automation framework that does not come with a framework for running integration tests or unit tests. Therefore, this demo uses the Mocha test runner and the Chai assertion framework. However, Selenium WebDriver may be used with any other testing framework, too.