How do I enable cross -site blocking while performing Selenium test?

How do I enable cross-site blocking while running the Selenium automation test on LambdaTest?

Hey Junior Milton,

I hope you are doing fine, and I will certainly make an effort to provide you with an answer.

You can use the below capability.

caps.setCapability(“enableCrossSiteBlocking”,true);

I hope this answer will work for you feel free to reach for further queries