My browser-based Cycle Features are failing.
Check that the following common mistakes are not causing your failures:
1. Opening the browser first
Any browser-based Steps in Cycle should be preceded in their Scenario with:
I open "<BROWSER_NAME>" web browser
2. Updates to the browser and webdriver
New versions of browsers and webdrivers are released periodically, and updating them may resolve web testing issues.
Chrome updates itself automatically without need for user interaction. This is enforced, and cannot be switched off. However in some cases a new version of Chrome will break existing web-steps due to a need for a corresponding update to your Chromedriver (see instructions below).
To check if a new version of Chrome has recently been released, you can go to Google's Chrome Release Blog.
Internet Explorer updates are done through the Windows Update service.
You can check your Internet Explorer version by going to:
- Settings Gear > About Internet Explorer.
Updating your webdriver in Cycle
Any time you manually update your browser, or Chrome automatically updates, it may be necessary to update Cycle's driver for that browser as well.
The latest versions for Chromedriver, IEDriver and MicrosoftWebDriver executables are available from Chromium, Selenium, and Microsoft respectively:
3. Some elements in the webpage have changed and are no longer valid
It is possible that the elements your Scenarios are trying to identify in the web page have changed in some way.
If the steps that are failing have to do with seeing or not seeing a specific element on the page, you may need to update those steps to use more flexible xpaths.
How to Set Up and Troubleshoot Webdrivers
Initial Webdriver Setup In order to use Cycle web Steps, a driver must be installed for Chrome, Internet Explorer, or Microsoft Edge. Step 1: Download your Webdriver The downloads for Chromedriver and IEDriver can be found from Chromium and Selenuim ...
How to make better xpaths for web tests.
Problem My web-based steps in Cycle are not finding the elements I want them to, or finding the wrong elements and giving me false-positives. Solution When possible, it is best to define elements to interact with on a web page by a static value that ...
How To Disable Chrome Auto-Update for Test Environments
Problem Google Chrome will auto-update when a new version becomes available. When this occurs, the Chrome Webdriver being used by Cycle will no longer match the version of Chrome and may become unstable. Solution To prevent unexpected issues, Chrome ...
How to enable the inspect element tool in the Microsoft Edge browser
Problem The inspect element tool can be accessed in the right click menu for Chrome or Internet Explorer, but is disabled by default for Microsoft Edge and must be manually enabled. Solution Enabling inspect element can be done in two ways: 1. Once ...
Getting Started with Cycle 2
Log In to Cycle Cloud In order to get started with Cycle 2, you will need to sign up for a Cycle Cloud account, and then download Cycle 2 from Cycle Cloud. The sign up process requires you to verify your email address. Please note, the email address ...