I am using Selenium via Java.
I am trying to test third party tracking and I am wondering if there is a way to access the network logs so that I can verify that a specific request came in?
For example, is there a way to access the network tab in the console via Selenium Webdriver?
-
4See this previous thread for an answer.cakes88– cakes882016年07月08日 19:30:48 +00:00Commented Jul 8, 2016 at 19:30
1 Answer 1
Selenium can only do what user can do in the browser (that's the whole point).
So if user can access logs from the browser (which will have to be a service by that third party), you can do it with selenium. If not, you cannot (so your logs are safe from any lurker).