Fixture.disablePageCaching Method

Disables page caching for all tests in the fixture.

When you activate a Role, you may inadvertently navigate to a cached page that contains outdated automation scripts. This can lead to TestCafe errors. Use the Fixture.PageCaching method to disable page caching.

See Troubleshooting: Test Actions Fail After Authentication for more information.

fixture.disablePageCaching → this

Example

fixture
    .disablePageCaching `My fixture`
    .page `https://example.com`;

You can also disable page caching during a particular test with the test.disablePageCaching method.