Closed adarmawan117 closed 1 month ago
You need wire
mode enabled. First install the extra dependencies:
pip install seleniumbase[selenium-wire]
Then you can do this:
from seleniumbase import SB
with SB(wire=True, browser="firefox") as sb:
sb.driver.get("https://wikipedia.org")
for request in sb.driver.requests:
print(request.url)
I want to fetch all requests similar https://www.dilatoit.com/2020/12/17/how-to-capture-http-requests-using-selenium.html
How can i do with seleniumbase.?
I try to use
But it give me error
AttributeError: 'Chrome' object has no attribute 'requests'