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

How can I expose my CasperJS tests as their own REST API?

I use simple uptime monitors like statuscake, uptimerobot, etc. to verify that my sites are up. The problem is that some of the sites are ASP.NET applications with complex __doPostback interactions -- basically, the user fills out a form, clicks…
Tobias Fünke
  • 2,034
  • 3
  • 24
  • 38
0
votes
0 answers

Cannot submit a form in phamtomjs

I'm new to PhantomJS. Following this example, I tried to create a script which logs in to avito.ru, then opens up an edit page, changes the price, submits the form, and as the server sends back a confirmation page, script should submit a new form…
Vladislav
  • 483
  • 2
  • 6
  • 17
0
votes
2 answers

angular.js applications rendered by google?

Is it possible for Google to render SPAs (angular in particular) without the use of a headless browser? I have built a service purely in angular but I would like to make it possible to apply SEO.
ipinak
  • 5,739
  • 3
  • 23
  • 41
0
votes
1 answer

phantomjs to render a page from a string

I want to render a webpage from a string. I've looked at the docs of phantomjs and they suggested the following: var webPage = require('webpage'); var page = webPage.create(); var expectedContent = '
Test…
hibye
  • 57
  • 6
0
votes
1 answer

In search of a working, stable, headless browser for CI integration and local browser runs

I'm looking for advice on the best way to test (via automation) an angular web app. I've dug around on a lot of sites looking at what other people are doing. I've also set up a framework and coded a short suite of tests in…
0
votes
1 answer

Selenium Pythonanywhere Cannot Locate Element

Anyone have any advice for locating elements on python anywhere using xvfb-run ? I get the driver up and display using the following code but when I try and locate an element by path I get cannot find element. This code works fine on my local…
0
votes
1 answer

How does headless browsers like PhantomJS take a screenshot?

I am curious and cannot find the answer with google. How does a headless browser like phantomjs actually take a screenshot? As the browser is headless how does it render an exact webpage render?
joshweir
  • 5,427
  • 3
  • 39
  • 59
0
votes
0 answers

Headless browser automation - Phantomjs &HtmlUnitDriver in Selenium Webdriver jar

I'm trying to do headless browser automation. I have tried both Phantomjs and HtmlUnitDriver but I have not been successful using them. I'm in my office proxy network. I'm not sure if that's the issue. Please find my selenium code to use Phantomjs…
0
votes
3 answers

What is this DalekJS error when I try to run a test via PhantomJS?

Every time I try to run a test using PhantomJS, Dalek gives me this error. However using GoogleChrome the test runs properly. Running…
cyrfandli
  • 249
  • 1
  • 3
  • 12
0
votes
1 answer

Using deathbycaptcha with phantomjs without interrupting sessions

Considering that PhantomJS isn't exactly node.js (so modules like deathbycaptcha2) are out as they use native requests, is it possible to simply open another instance of webpage and use it to send POST requests to the captcha API without affecting…
dsp_099
  • 5,801
  • 17
  • 72
  • 128
0
votes
1 answer

How to get a specific GET Request with a headless browser?

How can I get a specific GET Request and the information in this request like https://example.de/ca.aspx?campaign=123456&pitype=Content via PhantomJS or another headless browser?
Vega
  • 2,661
  • 5
  • 24
  • 49
0
votes
0 answers

How to use For Loop in Selenium IDE to loop through pages

I would like to see my web pages to change automated from from page 1 to page 200 and i tried using php and javascript but nothing worked for using for loop. is there a way to use for loop in the page? clickAndWait …
Manoj Kumar
  • 107
  • 1
  • 2
  • 10
0
votes
1 answer

Unable to Click Button with Headless Selenium Browser

I am attempting to click a button on this page using a headless PhantomJSDriver() and a click() command, but it hangs for about half a minute and then claims it cannot find the element. How would I properly identify the button and simulate clicking…
Dumpcats
  • 453
  • 5
  • 21
0
votes
1 answer

CasperJS/PhantomJS - Browsing one page and send HTTP request to other resource

I need browse one page, retrieve data from it and send data to my service via HTTP requests. As far as I know, CasperJS/PhantomJS can work simultaneously with only one web resource. How to bypass this limitation? UPD: I need make request from…
Interloper
  • 790
  • 7
  • 20
0
votes
1 answer

CasperJS - echo cyrillic symbols

I use echo() function for output text to stdout. But instead of the cyrillic characters are displayed incorrect characters. How to fix it?
Interloper
  • 790
  • 7
  • 20