wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.86k stars 241 forks source link

debuggerAddress error #647

Open jordibonastrem opened 1 year ago

jordibonastrem commented 1 year ago

Hi im trying to use selenium-wire with the debuggerAddress option. Ive read:

but i keep running with the same problem: code: chrome_driver = resp["data"]["webdriver"] port = resp["data"]["debug_port"] chrome_driver = resp["data"]["webdriver"] port = resp["data"]["debug_port"] chrome_options = webdriver.ChromeOptions() chrome_options.add_argument(f"--window-size=1024,1000") chrome_options.add_experimental_option("debuggerAddress", f"127.0.0.1:{port}") sw_options = { 'port': int(port) } driver = webdriver.Chrome(chrome_driver, options=chrome_options,seleniumwire_options=sw_options) error: Exception has occurred: ServerException Error starting proxy server: gaierror(11001, 'getaddrinfo failed') socket.gaierror: [Errno 11001] getaddrinfo failed Any help is apreciatted, Thanks!

yinyerong commented 1 year ago

And when debugging is enabled, the requests obtained through the driver are empty.

quocviet0304 commented 7 months ago

You should use version lower can support selenium-wire when debug like 103 or upper