I am getting a “Java heap space Error” exception while running the test on LambdaTest. What to do?

The test ran completely fine with the local driver (ChromeDriver). How to avoid “Java heap space Error” exception?

Hello Dipen,

In case you are passing capabilities.setCapability("visual", true), this might be causing the issue.

Request you to kindly pass capabilities.setCapability("visual", false)