Need help with the following scenario,
I have automation tests using Selenium and C# to check for the presence of cookie banner and accept cookies.
When I run the automation, the page does not display the cookie banner. Where as, banner shows during manual testing.
But sometimes these tests are passing in my local machine.
Is there any way to overcome this? Is there a possibility to add the JSON content during the automation run, like, when I open the url and I add the JSON content?
Thank you for your time.