Questions tagged [seleniumwire]

Selenium Wire is a python package that extends the original Python bindings provided by Selenium in order to provide the tests with additional access to the underlying requests that were made by the browser. Use this tag for questions related to the Selenium Wire package.

Selenium Wire package: https://github.com/wkeeling/selenium-wire

89 questions
35
votes
8 answers

selenium / seleniumwire unknown error: cannot determine loading status from unknown error: unexpected command response

Here is the error: selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status from unknown error: unexpected command response (Session info: chrome=103.0.5060.53) I'm using proper webdriver and chrome…
Col Burn
  • 359
  • 1
  • 3
  • 3
7
votes
5 answers

Selenium-wire response object - Way to get response body as string rather than bytes

I want to fetch a response body as string in selenium-wire which I will eventually parse as JSON. response.body in selenium-wire gives bytes string. I tried decoding it as response.body.decode('utf-8') but this gives decoding error. Can someone help…
hp2505
  • 95
  • 2
  • 6
6
votes
1 answer

selenium-wire blocking connection due to proxy config

I'm using selenium-wire and the firefox webdriver to access a website (online game). I am running a python script on my local network and no proxy is needed to access the Internet. Here is a extract on my code: #!C:/Python38-32/python.exe from…
remyremy
  • 3,548
  • 3
  • 39
  • 56
4
votes
1 answer

How do I locate the Google Maps URL present inside the iframe element via Selenium?

I wish to retrieve the Google Maps URL present inside the iframe element of a webpage https://villageinfo.in/andaman-&-nicobar-islands/nicobars/car-nicobar/arong.html. Below is the sample url which I need from the iframe…
2
votes
0 answers

Undetected_chromedriver + Seleniumwire together

I used to work with "seleniumwire" because I was comfortable getting "requests" from "driver". Now the situation has changed and I need to use "undetected_chromedriver", but as you know, this library does not support "requests" at the moment. I know…
2
votes
1 answer

how i can modify header in seleniumwire driver

I want to change my header Http information but nothing happens with the below code. Please help me, what is the problem and how should I solve it? I want to be able to change the user's information on each visit, like the ModHeader…
2
votes
2 answers

selenium.common.exceptions.InsecureCertificateException: probably due to HSTS policy

I am trying to open microsoft outlook using selenium firefox, but I get this when the url opens Connection to outlook.live.com has a security policy called HTTP Strict Transport Security (HSTS), which means that Firefox can only connect to it…
farhan jatt
  • 509
  • 1
  • 8
  • 31
2
votes
1 answer

Selenium wire running very slow

Selenium wire is running very slow for me, like takes 30 seconds to run the code. I am using selenium wire together with undetected_chromedriver.v2 the settings I am using are : seleniumwire_options = { 'proxy': { 'http':…
2
votes
0 answers

Selenium-wire - Module Not Found

Hi i would like run the next script but selenium-wire doesn't work, someone can help me? Code: from seleniumwire import webdriver import time options = { 'proxy': { 'http': 'http://user:pass@ip:port', 'https':…
2
votes
1 answer

SEC_ERROR_UNKNOWN_ISSUER | Selenium-wire Firefox

I am trying to visit a website and get the website's network headers. However, I'm getting this error "SEC_ERROR_UNKNOWN_ISSUER" There's no "Accept the Risk and Continue" option. Only go back. I've tried just about everything I could find about this…
2
votes
3 answers

Can't force a script not to print error log details in the console

I'm trying to create a script using python in combination with seleniumwire implementing poxies within it. The script sometimes works correctly but most of the time comes up with error log details even when the status_code is 200. I wish to get rid…
SMTH
  • 67
  • 1
  • 4
  • 17
2
votes
0 answers

Can't click button after using an authentisized proxy (Python seleniumwire)

I'm trying to click "Add to Bag" button and with selenium it work's just fine, but after using selenium-wire with authentisized proxy server, although i can still get to site and click every other button and it works, after clicking this one nothing…
SrarinCZ
  • 21
  • 2
2
votes
1 answer

Seleniumwire not logging all requests in chrome headless mode

I'm trying to capture all network logs using seleniumwire. When chromedriver is in normal mode, it is able to capture all requests. But when it is in headless mode, it is not capturing all requests. I tried adding sleep(10), assert…
1
vote
1 answer

Seleniumwire is not supporting Chrome version 116

I'm have a problem when using Seleniumwire. I need seleniumwire in using its proxy authentication feature. But recently, Chrome has been updated to version 116 and Seleniumwire still just supporting maximum version Chromedriver 114. Maximum…
1
vote
0 answers

seleniumwire blank response.reason

Status code prints correct, but reason always blank. Whats wrong? I need output like this: status: 200 (OK) but got this: status: 200 () from seleniumwire import webdriver user_agent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0)…
ValB
  • 19
  • 2
1
2 3 4 5 6