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
1 answer

Search engine Crawling in Angular Apps on ASP.NET

I'm using Angular js for my web front end, and ASP.NET as my back end. Can someone point me to a headless browser I can easily use to render content on the server side for web crawlers. I am looking at Awesomium.NET and WebKit.NET and both seems…
Madushan
  • 6,977
  • 31
  • 79
0
votes
1 answer

Run command line through PHP (w/CasperJS)

I have setup CasperJS without a problem and have a script correctly configured & working when I execute directly via the command line - I would now like to have my PHP Codeigniter application 'talk-to' this script and be able to execute the same…
Zabs
  • 13,852
  • 45
  • 173
  • 297
0
votes
1 answer

How can I use a headless browser with Rails?

I'm a beginner when it comes to web development and I'm trying to crawl a webpage (a facebook for my school) using a headless browser for my app. I'm not sure where to begin with headless browsers (or basic crawling for that matter) and I'm not sure…
Cilantro Ditrek
  • 1,047
  • 1
  • 14
  • 26
0
votes
1 answer

Login with CURL , upon login successfully, it isn't logged in

I have managed to login into this website taobao.com but upon logging in , it doesnt log me in. I tried placing a fake login credential on the website and i will be redirect to the login page with it saying wrong user/pass but when i place the…
CodeGuru
  • 3,645
  • 14
  • 55
  • 99
0
votes
1 answer

fill out a registration form with casperjs fill() and a random email address

i have a test for a registration form (name, email, pw), and i'd like to have it so that it uses a randomly generated email address each time so i don't have to do any cleanup or editing of the test. do i need helper files for this or can i do it…
0
votes
1 answer

How to run (and kill) headless browser via cron job for automated scraping in PHP

I've been attempting to create a spider that will run via cron every morning. I wanted to incorporate a headless browser in order to get the rendered DOM (after javascript). I tried using Crowbar (a headless browser) and have had success getting…
Jeremy Penrod
  • 331
  • 1
  • 4
  • 18
0
votes
1 answer

Sahi + PhantomJS fails when testing local PHP web app with behat

I'm having an issue testing a locally hosted web application with a behat+sahi+phantomjs set up. I have run the full suite with just behat+sahi+chrome which works fine I have also tested a small sample behat test against a live stie that works…
user945747
0
votes
1 answer

Capybara Poltergeist - Site shows message to enable cookies

I am running Capybara 1.1.2 with Poltergeist 1.0.1 for headless testing. The test runs fine with selenium driver. However with poltergeist, the site snapshot states that cookies are disabled. Am I missing any config. Shouldn't cookies be enabled by…
3coins
  • 1,322
  • 3
  • 11
  • 30
0
votes
2 answers

How to detect JavaScript events on third party sites

Is there any way (implemented or just in theory) that one could detect JavaScript events and actions assigned on a third party site? If I am injecting JavaScript into a foreign site and want to avoid overwriting onsubmit, onclick, onfocus and other…
Daniel Nill
  • 5,539
  • 10
  • 45
  • 63
0
votes
1 answer

How to hide SWT Browser or run in headless mode?

I took the rendered page from the SWT Browser and exported it to an image. My problem is that I am not able to get it to export properly when the shell is not visible. How can I go about hiding the browser and have the image export properly? I have…
KrispyDonuts
  • 1,262
  • 2
  • 18
  • 37
0
votes
2 answers

browser.visit just a string of html

With zombie.js, Is there a way to directly specify the document zombie should visit: browser.visit('', ...) Eg: not a url, just a string. I know it supports file://path/to/my/page.html, but I just want to feed…
abernier
  • 27,030
  • 20
  • 83
  • 114
-1
votes
1 answer

How to save time in scraping datas with headless mode and selenium webdriver in Python

Hello I have a simple python script which opens and extracts automatically datas from a webpage. It takes 5 seconds to do it. In my case I would like a faster script which runs instantaneously or 2 seconds max. Here is the script…
-1
votes
1 answer

Transfer from session made in script to opening a selenium browser (and headless browser) on the same session

So I have coded this script that sets a session then goes through a series of requests but at the end of the final request, I would like it to launch a (headless and) browser on the same session at the beginning then I will further automate…
-1
votes
1 answer

Unable to reach elements console with PhantomJS and Selenium

I have the next code, this code works with chrome driver but with phantom js 1.4.4 library and 2.1.1 driver is not working im not able to locate the elements This issue doesnot appear with chrome driver. Code trials: public void test1() { …
-1
votes
1 answer

Unable to capture screenshot in Chrome Headless mode while switched in new tab

I have below Configuration : Selenium 3.8.0 Java 8 Chrome Browser 60 Chromedriver v 2.31 64bit I'm running my test in chrome headless mode. The issues is, the browser get unresponsive while it switch to new tab and try to capture the…
1 2 3
49
50