I need to automate where We are sending data which is available on console in real time. Automation test can be to check that data is triggering or data format is correct which is being sent. I can manually check this on console but there are lots of things to check and need to automate the process. Is there any method in selenium which we can utilize to interact with console data.
You can use driver.manage().logs().get
. You also need to configure the loggingPreferences
to log normal console.log
calls, rather than just more severe error logs.