Have a requirement to capture network traffic from the browser while running automation test cases.
Came across below post but not sure if it has been included as part of Watir 7. Appreciate if there is any example for tapping on to devtools and capture network traffic like api calls using Watir. Thanks!!
Watir is not currently wrapping those features. You have access to everything by getting the selenium driver with the
#wd
method. So like this:There isn't a great guide in the selenium documentation for these, but here are other examples from the specs: https://github.com/SeleniumHQ/selenium/blob/trunk/rb/spec/integration/selenium/webdriver/devtools_spec.rb