45 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
77
views
Camoufox browser window remains visible in WSL even when `headless` is set to `virtual`
Camoufox browser window remains visible in WSL even when headless is set to virtual
Description
When headless is set to "virtual", the Camoufox browser window still appears on the screen in ...
0
votes
0
answers
202
views
Is there any way to save in PDF automatically the website with window.print() or Ctrl+P in Firefox?
When I am on any web page (e.g https://stackoverflow.com/) I would like to save it in PDF automatically from Firefox with 'Mozilla Save to PDF'. For example Ctrl+P or window.print() method from ...
0
votes
1
answer
266
views
How to Import Self-Signed certificate into headless-Firefox
Question
I want to access some websites using selenium(Python) and headless-firefox with Self-Signed certificate.
When I use FireFox Browser instead of selenium and headless-firefox, I could realize ...
1
vote
2
answers
3k
views
Selenium: AttributeError: 'Options' object has no attribute 'set_headless'
I'm wanting to write a python script using Selenium to scrape a website. Following along with the Real Python article on it, I literally copy and pasted the following code into a py file:
from ...
-1
votes
1
answer
852
views
What is the correct way of running test cases(in headless firefox) in xvfb and record the test cases using ffmpeg
https://malinowski.dev/recording-headless-selenium-tests-to-mp4.html this is the link i am using but i don't even know how to do all these.I don't know whether i should run all the commands in that as ...
0
votes
1
answer
605
views
I get black screen when i record the headless selenium driver with xvfb and ffmpeg [closed]
xvfb-run --listen-tcp --server-num 44 -s "-ac -screen 0 1920x1080x24" mvn clean test &
export DISPLAY=:44
ffmpeg -f x11grab -video_size 1920x1080 -i :44 -codec:v libx264 -r 12 video.mp4
...
10
votes
5
answers
68k
views
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=59587): Max retries exceeded with url using Selenium GeckoDriver Firefox
At dawn my code was working perfectly, but today when I woke up it is no longer working, and I didn't change any line of code, I also checked if Firefox updated, and no, it didn't, and I have no idea ...
0
votes
1
answer
3k
views
Error with puppeteer with alpine Docker in chromium headless
I'm trying to use pageres in my bash script for grabbing screenshot in heruko.
But running pageres with alpine:latest throws error with puppeteer.
Error: Failed to launch the browser process!
[0318/...
0
votes
1
answer
2k
views
Copy Paste not working with headless browser in python selenium
I am using selenium with python to click a button on a webpage. This copies data in csv format on to the clipboard. Then I use the data on clipboard to create an array, which is used further in the ...
2
votes
1
answer
3k
views
playwright - get content from multiple pages in parallel
I am trying to get the page content from multiple URLs using playwright in a nodejs application. My code looks like this:
const getContent = async (url: string): Promise<string> {
const ...
0
votes
1
answer
368
views
using selenium to run Firefox in headless mode error: 'Options' object has no attribute 'binary'
I just started using selenium and wanted to check the status of a ps5 at Walmart
but I get the error 'Options' object has no attribute 'binary'
it worked fine before I tried to run it in headless mode....
1
vote
1
answer
117
views
Selenium browsing with headless isn't working?
I'm trying to use Selenium with a headless browser but when I run this code below it still opens the browser?
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from ...
1
vote
1
answer
1k
views
Puppeteer/Playwright is it possible to set the browser visible when launching as headless
Is it possible to launch Playwright with headless set to true and then later while the browser is still running change headless to false? I could not find anything in the documentation.
7
votes
1
answer
5k
views
Firefox headless not working within Docker as non-root user
As the title says, I'm having trouble running Firefox in headless mode inside a Docker container as a non-root user. Consider the following Dockerfile, built with docker build -t firefox .
FROM python:...
3
votes
3
answers
8k
views
AttributeError: 'Options' object has no attribute 'binary' error invoking Headless Firefox using GeckoDriver through Selenium
options = FirefoxOptions()
options.add_argument("--headless")
driver = webdriver.Firefox(firefox_options=options, executable_path='/Users/toprak/Desktop/geckodriver')
driver.get("https:...