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
1
vote
0 answers

Why does Selenium-Wire AWS lambda function driver instantiation fail with Status code 1?

I'm trying to get Selenium-Wire to work in an AWS Lambda. I've seen very few StackOverflow entries about it, but it kinda seems some people were successful. My lambda is stateless and doesn't even need to use any other AWS feature (such as S3). It'd…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
1
vote
0 answers

Selenium wire attribute error when launching chromedriver with a remote debugging port

This one has really stumped me. I need to be able to launch my chromedriver with a remote debugging port. This works fine in regular selenium but when done with selenium-wire, I get the following error. AttributeError: 'Options' object has no…
1
vote
0 answers

Selenium wire throwing invalid server specification error for authenticated proxy

The following code throws from proxy import getProxy from seleniumwire import webdriver from selenium.webdriver.common.keys import Keys import time username , password , ip , port = getProxy() options = { 'proxy': { …
1
vote
0 answers

Seleniumwire webdriver.Remote SessionNotCreatedException -- seleniumwire doesn't work with updated selenium webdriver.Remote code

I am having a problem with switching from selenium webdriver.Remote to seleniumwire webdriver.Remote. Everything works fine while I'm running code: from selenium import webdriver class Scraping(webdriver.Remote): """ Class creates instance…
ajust
  • 11
  • 1
1
vote
2 answers

ImportError using Seleniumwire

I can't figure out what is causing the error. Python 3.9, 3.10. Traceback (most recent call last): File "C:\Users\User\Desktop\S\SS\test.py", line 1, in from seleniumwire import webdriver File…
user18196171
1
vote
1 answer

Get xhr requests using Selenium-wire and undetected-chromedriver

I'm following the code below, but couldn't get the XHR requests. Code from here. Anyway to fix this? import seleniumwire.undetected_chromedriver as uc chrome_options = uc.ChromeOptions() driver = uc.Chrome( options=chrome_options, …
1
vote
0 answers

AWS Device Farm with Selenium Wire Remote WebDriver

In my project, to be able to access a testing environment website I need to send a header request, otherwise I get a 404 error. I'm running Selenium-wire using Jenkins on a server and running the browser on AWS Device Farm. The thing is, some sites…
1
vote
1 answer

empty requests in seleniumwire python

I'm using selenium-wire to scrape requests headers in Ubuntu 18.04 and using Firefox driver. But driver.requests is empty. what's the problem with me? from seleniumwire import webdriver driver = webdriver.Firefox(executable_path=FireFoxDriverPath,…
lord-hasan
  • 83
  • 1
  • 7
1
vote
0 answers

Firefox and Seleniumwire not working on AWS EC2 instance

I'm trying to run Firefox with Seleniumwire on an AWS EC2 instance. Here's my current configuration: ubuntu==20.4 selenium-wire==4.3.0 python==3.8.10 geckodriver==0.29.1 ChromeDriver==94.0.4606.81 64-bit (Arm) I've installed ChromeDriver with sudo…
mmz
  • 1,011
  • 1
  • 8
  • 21
1
vote
1 answer

python selenium accept cookie iframe

I'm new in python and selenium and I need help. I can not accept cookie in to the iframe Anybody can help me please? Thanks from selenium.webdriver.firefox.options import Options from seleniumwire import webdriver options =…
skizo
  • 33
  • 4
1
vote
1 answer

Selenium-wire not replacing headers

I am trying to use selenium-wire to replace headers when driving a headless chrome browser. I'm looking to run python code in a Docker container, thus the desire for a headless approach. I've written code based on this example:…
1
vote
1 answer

Python Seleniumwire How To Pass Arguments

I'm trying to use seleniumwire to connect to a website if i want to pass arguments to option is this right way? Because it is not working for me beside the proxy part. I want the browser to be hidden and all the errors that i'm gettings for USB…
Simon
  • 371
  • 1
  • 3
  • 16
1
vote
1 answer

Selenium-wire does not intercept requests when connecting remotely

I am using Selenoid on a dedicated computer to run browsers. The connection is as follows: from seleniumwire import webdriver chrome_options =…
nosheyakku
  • 316
  • 2
  • 11
1
vote
0 answers

Dowload images while I browse site

Goal: Collect all the images from a site as I browse. I've tried: requests and wget don't work even with cookies set and all headers changed to mimic Firefox. Firefox cache has the images, but they all have a random string as the name. I need…
1
vote
1 answer

Set RequestHeader through Selenium WebDriver

I'm encountering the below error while trying to set Request headers using browsermobproxy for selenium tests. Exception in thread "main" org.openqa.selenium.WebDriverException: : Failed to read the 'localStorage' property from 'Window': Access is…