The browser section in your Momentic project configuration file allows you to set default browser settings for all tests in the project. Individual tests may still override this setting in their test options. Currently, the supported keys are:

  • localChromeExtensionPaths: An array of paths to unpacked Chrome extensions on the local disk. These extensions will be loaded onto the browser before the test begins.
  • disableGpu: Whether to disable intensive graphical operations, such as web GL and rasterization with hardware acceleration. This can significantly increase performance, however some graphics libraries may require it.
  • pageLoadTimeoutMs: Override the default page load timeout in milliseconds. Individual tests can still override this setting.

Example

momentic.config.yaml
name: example-project
[...]
browser:
  disableGpu: true
  localChromeExtensionPaths:
    - /tmp/eimadpbcbfnmbkopoojfekhnkhdbieeh
    - /tmp/bcjindcccaagfpapjjmafapmmgkkhgoa
  pageLoadTimeoutMs: 20000

Was this page helpful?