Skip to content

v9.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Feb 16:43
· 798 commits to dev since this release

Default browser configuration

The UI Testing Toolbox now offers a default for the browser being used. The endless [Theory, Chrome] attributes and passing the browser down the call chain are now while still supported, unnecessary, unless you want to use a different or multiple browsers.

Everything should keep on working, but it's still nicer to remove the now unnecessary code. So, in all projects, please do this:

  1. Update to the latest UI Testing Toolbox. Then code cleanup time! Warning: UITestBase classes should usually remain so check and revert them if they change after the below steps!
  2. Do a Find and Replace in the UI test projects with the following will cover most cases: [Theory, Chrome][Fact], (Browser browser) =>() =>, , browser););.
  3. Run the following with "Use regular expressions" checked: ,\r\n.*browser\););, ,\r\n.*browser,,.
  4. Do a Find and Replace of (Browser browser)().
  5. Do a reference lookup for Browser.Chrome (Shift+F12) to find any missed cases.
  6. Finally, you'll need to check the formatting of all tests, because e.g. you may be able to make methods a lot more compact with fewer line breaks. All tests will have now unused references too, but if you have cleanup on save configured in VS, then just saving them will get rid of that.

All other changes

New Contributors

Full Changelog: v8.2.0...v9.0.0