Writing a journey for testing elements visible only for google bot. I want to set the javaScriptEnabled: false in the playwrightOptions in the monitor.use() but it doesn't work.
Hi @Robinhlgrsn , welcome to our community.
Could you share your Javascript code?
Hey @Alex_Salgado-Elastic, thank you! Yeah sure!
So in the monitor.use() i try to pass the javaScriptEnabled:false to playwrightOptions, but it doesn't disable javaScript when i run the test.
Hi @Robinhlgrsn,
Have you tried setting javaScriptEnabled: false
in synthetics.config.ts
file? Some of the setup options will not be applied correctly during monitor run time.
Yes this works in the synthetics.config.ts
but can i config this for specific journey's since some tests need javascript enabled?
@Robinhlgrsn monitor.use
doesn't work locally but it will work when it's pushed to kibana.
we have an issue for this enable/document local testing using · Issue #973 · elastic/synthetics · GitHub