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
0
votes
0 answers

Getting "OpenSSL.crypto.Error: [] when running an exe created by pyinstaller, the error seems to come from something related to selenium wire

I have a python script created with selenium wire and wxpython. The script runs fine on my computer and another co-worker's computer(who also has python installed). The idea for this app is to be able to work on other's computers without having to…
Isaac M
  • 56
  • 4
0
votes
0 answers

How to check the specification of the HTTP protocol Selenium Python

I want to check the specification of the HTTP protocol using Selenium Wire to see how can I request resources in pieces and which HTTP response indicates that the resources can be loaded in pieces. Below is the code: from seleniumwire import…
0
votes
1 answer

How to run Firefox headless in seleniumwire?

I'm trying to run selenium-wire with Firefox in headless mode: from seleniumwire import webdriver options = { 'proxy': { 'http': 'http://user:password@ip:port', 'https': 'https://user:password@ip:port', 'no_proxy':…
kuhi
  • 531
  • 5
  • 23
0
votes
0 answers

i have some problem with my code. i am trying to open url and click element but i get 400 bad reques?t error

i have some problem with my code. i am trying to open url and click element but i get 400 bad reques here is my code: def had_val(url,ip,num): driver = webdriver.Chrome('chromedriver') driver.header_overrides = { …
rohan
  • 11
  • 1
0
votes
1 answer

I want to filter the value in the Network tab using selenium-wire

I use selenium-wire to capture the value when the download button is clicked. main.py: import os from seleniumwire import webdriver from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager from…
0
votes
0 answers

Seleniumwire and selenium

I had a code where I need to add proxy support and I used seleniumwire to add proxy. But after that my code always crash Original code try: from selenium import webdriver import time, os, ctypes, requests from colorama import Fore, init …
0
votes
0 answers

"Failed to execute script" when trying to share exe

So I can compile my project and run the .exe perfectly fine on my PC but if I try to share it with others or run it on another PC I get "Failed to execute script WS.py" I tried installing selenium, selenium-wire, python, and pyinstaller all in an…
Wet Sockys
  • 11
  • 1
0
votes
1 answer

Seleniumwire.py throwing ERR_TUNNEL_CONNECTION_FAILED when using Proxies

I have been trying to add authenticated proxies to my selenium code. I came across selenium wire after alot of research. When I ran the can it threw me this error? selenium.common.exceptions.WebDriverException: Message: unknown error:…
hassan
  • 26
  • 6
0
votes
1 answer

Selenium-wire | Monitor localhost requests

I'm trying to intercept localhost requests of my Chromium browser with selenium-wire but it does not detect them. This is my code: import time from selenium.common.exceptions import WebDriverException from seleniumwire import…
juanmac
  • 121
  • 1
  • 12
0
votes
0 answers

Selenium webdriver on Ubuntu does not return data

I use this part of code on Windows 10 and it works fine and the driver gets the data. When running on Ubuntu 20.04 the driver works without errors but doesn't receive anything. Specifically, the driver.requests is empty. Google Chrome and libraries…
0
votes
1 answer

Not able to scrape a valid mp4 url

I am working on a scraper; more particularly fembed scraper using this url. I began with clicking on the play button then capturing the request made. But how am I going to store that request and when I click on the mp4 url captured in the console it…
Abhinav Singh
  • 31
  • 1
  • 6
0
votes
1 answer

Seleniumwire dont intercept HTTPS if user-data-dir is defined

I try to intercept requests by seleniumwire. If I dont use option --user-data-dir everything is fine. All requests are showed by driver.requests. But I need parse some sites with authentication. So I provide in --user-data-dir option profile with…
0
votes
2 answers

How to fix UnicodeDecodeError for bytes from requests?

I have the following full working example code using selenium-wire to record all requests made. import os import sys import json from seleniumwire import webdriver driver = webdriver.Chrome() driver.get("http://www.google.com") list_requests =…
Alex
  • 41,580
  • 88
  • 260
  • 469
0
votes
0 answers

When I use selenium wire to find page elements and send data, you will be prompted "elements do not interact"

When I use selenium wire's find_ Elements (by. XPath, '/ / input [@ class = "quantumwiztextinputpaperinputinput exportinput"]') returns my results when looking for page elements, but when I want to send data, it prompts me "element not…
0
votes
1 answer

Unable to load web page with seleniumwire

Unable to load the web page using seleniumwire, I am observing this error in the browser. This page isn't working xxx.xyz didn't send any data. ERR_EMPTY_RESPONSE When I replace seleniumwire with selenium while initializing the webdriver, the issue…
GreyndBlue
  • 331
  • 1
  • 2
  • 11