Fixture.disablePageCaching Method

Note

Disable native automation to set the disablePageCaching option.

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`Fixture.disablePageCaching`
    .page`https://devexpress.github.io/testcafe/example/`
    .disablePageCaching;

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