Questions tagged [headless-browser]

A headless browser is a web browser without a graphical user interface. They are used to provide content of web pages to other programs.

A headless browser is a browser without a GUI. In most cases, it can be accessed from a command line.

They are typically used for automated testing of websites.

Examples include:

748 questions
0
votes
0 answers

What is phantomjs --wd command alternative for slimerjs?

I was using Phantomjs with Phoenix framework for test, and the package I use in phoenix is hound. I previously installed phantomjs with apt-get which was giving problems (this github comment said the installation method was the culprit), so I…
0
votes
1 answer

How can I enable download a file using a headless chrome browser in robot framework?

How can i use Page.setDownloadBehavior in chrome dev tools to pass on so that I can set the download behavior for headless chrome with the code below? Create Chrome Browser [Arguments] ${link_to_open} ${chrome_options}= Evaluate …
0
votes
2 answers

Selenium unstable results

I'm using Selenium with Python and headless Chrome driver to scrape all images from this website: https://www.redbubble.com/shop/game+of+thrones+t-shirt?ref=search_box. To summarize the code I…
0
votes
1 answer

Developing scraping script on docker image - how to overcome lack of visual browser?

I want to scrape info from the web and a previous attempt has taught me that docker would have been useful to run my script on since I develop the script on mac os x and then run it on a vm often ubuntu it often won't run since the dependencies…
goose
  • 2,502
  • 6
  • 42
  • 69
0
votes
1 answer

Headless chrome is taking too long to open any url as compared to full chrome

When I am trying to open pages in Headless chrome through Puppeteer it is taking much time as compared to the Full Chrome. I am trying to open normal websites in 1366*768 viewport to take their screenshots , But it takes a lot of time to open normal…
0
votes
3 answers

Python how to pass selenium driver into function

I keep on getting this error when running my code: **name 'driver' is not defined** Can anybody tell me why? How would I make it run like this. So If any of the smaller tests fail, it is very clear where the problem…
Future Hendrixs
  • 19
  • 1
  • 1
  • 4
0
votes
2 answers

Headless Browser for FreeBSD Server?

I'm looking for an open source headless browser to run on a FreeBSD shared Web server, which can do reasonably accurate rendering of current HTML/CSS/JS. As I'm not very skillfull with Unix/servers and don't have root access, this should have no…
Patricia
  • 51
  • 1
  • 3
0
votes
2 answers

Webdriver test with angular loading screen fails in headless mode

I have a simple page with several tabs. It uses angular. On initial page load the elements load, then while the data is loading I have an element on top of everything disabling user activity until the data loads. Script has a 'wait until visibility…
0
votes
1 answer

Downloading files through puppeteer, need to maintain cookies/state

I'm currently downloading files using the request package using the following code: request .get({ url, headers: { Authorization: "base64" } }) .pipe(fs.createWriteStream('test.xlsx')) This works nice…
A. L
  • 11,695
  • 23
  • 85
  • 163
0
votes
1 answer

I need to run headless browser on ec2 using selenium python. I tried chrome headless but it didn't work

import chromedriver options = webdriver.ChromeOptions() options.add_argument('headless') options.add_argument('window-size=1200x600') browser = webdriver.Chrome(chromedriver,chrome_options=options) I get the following error when I execute this…
0
votes
1 answer

Getting error while running firefox browser in headless mode using python 3

I am just trying to run this using headless browser i don't understand why it keeps throwing me the error even if i have provided argument. Here i have read that it requires argument to pass in options.add_argument() :-…
Rahul
  • 49
  • 6
0
votes
1 answer

HtmlUnit Driver not able to pick correct URL

I am trying to implement headless testing so used HtmlUnit Driver for that. It is working fine but fails on assert statement when I try to compare actual URL and expected URL. When I use HtmlUnit Driver, it picks up # at the end of URLs due to…
0
votes
0 answers

Use Headless Chrome to run a flash game and take screenshots

Pretty much what the title says. I don't want to use Selenium since it will be very slow and I will need at least 60 frames per second. Is there other alternatives? Has anyone tried something like this? I am trying to do this on a game called…
0
votes
1 answer

Getting html response with python headless browser

I am trying to make an automated system that performs multiple search and download the results. I need to first get authentication for the website, the direct to the search page, set parameters for search, make the html req which includes some…
ida
  • 1,011
  • 1
  • 9
  • 17
0
votes
1 answer

Warning on running Google Chrome 59 headless mode

I want to use Google Chrome headless mode. I type this. google-chrome --headless --disable-gpu --dump-dom --no-sandbox http://google.com and it always show warning in the first output like below. [0722/222841.700788:WARNING:audio_manager.cc(293)]…