Fixture.disablePageCaching Method


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



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