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

Selenium (PhantomJS) Unicode Chars In URL Altered Error (Python)

Problem Is Quite Simple; I'm using selenium (specifically the PhantomJS Webdriver) to access a website with the URL domain.com/something/⑧.txt for example. Quite straightforward apart from the fact the URL contains the ⑧ character. Selenium just…
Mohsin Kale
  • 197
  • 2
  • 11
0
votes
2 answers

Do I need a headless browser to scrape for CSS attributes

My goal is to pull particular CSS attribute values off a webpage. I've set up a scraper using Guzzle and Symfony's css-selector. However, I've realized that the css-selector doesn't work the same as jQuery, as far as I can tell there's no .attr()…
icicleking
  • 1,029
  • 14
  • 38
0
votes
2 answers

Protractor throws error an X Display is required for headless chrome 59

While running ng e2e I get the following ✓ should display message saying sign up ✗ should be able to sign up with a valid user - Failed: unknown error: an X display is required for keycode conversions, consider using Xvfb (Session info:…
0
votes
1 answer

PhantomJS doesn't render full page content

I am new to PhantomJS and playing with the most basic code: fetching a google page and capture the screenshot. The URL I'm trying to fetch is: https://www.google.com/#tbm=lcl&q=starbucks If you open it in a real browser, you will see it looks like…
Allan Jiang
  • 11,063
  • 27
  • 104
  • 165
0
votes
1 answer

What is a modern headless testing option for single page apps?

I recently started an Angular 2 application. I went to phantomjs (latest version, 2.1) for headless testing, and it was blowing up on 'const' keyword. A little research led me to believe that phantomjs is way behind for implementing es6. Am I…
Pompey Magnus
  • 2,191
  • 5
  • 27
  • 40
0
votes
1 answer

Nightmare hangs on goto()

I have been recently working with NightmareJS and I am now having a problem. It seems as though whenever I try to load a page using Nightmare and wait for a selector to exist, it hangs on the goto call. I have the following code and the only thing…
Cameron
  • 58
  • 7
0
votes
3 answers

Protractor Headless browser Testing using XVFB+Grunt runner on centos 7 linux distribution

Below is my gruntfile.js . I can run the protractor tests on UI using 'grunt protractor:run command. However, when i try running command ' grunt protractor-xvfb' so that i can run my tests in headless mode, the browser still launches and tests…
0
votes
0 answers

Headless browser capable of popup handling?

I tried https://hub.docker.com/r/wernight/phantomjs/ and https://github.com/SeleniumHQ/docker-selenium/tree/master/StandaloneChrome Docker images with browsers (first one is truly headless and the second one incorporates real chrome running under…
scythargon
  • 3,363
  • 3
  • 32
  • 62
0
votes
0 answers

How to make element visible on headless browser

I am using selenium webdriver and headless browser for running my script. I am trying to upload file for that element required to use is invisible in html source page. I tried making it visible by using javascript and I can able to make it visible…
sufiya
  • 43
  • 2
  • 8
0
votes
0 answers

No such element exception in Python + Selenium + PhantomJS

I've got autotests, using Chromedriver, and locally they work well in a graphical mode. We're gonna run them on ubuntu server without graphic, so I need to use another driver or emulate X-server. I'm trying to use PhantomJs. Below is what I've…
0
votes
1 answer

Best Way to Validate Login URL Redirection

Can anyone help me which is the best way to implement below utility where I have around 20 Set of Username and Password and I should login to url Say : http://login.com , If the username/password is proper it will redirect to http://login.com/true…
Mahesh G
  • 1,226
  • 4
  • 30
  • 57
0
votes
0 answers

Waiting for resources in Electron

In PhantomJS we can wait for resources to do something related to AJAX calls of webpage, but in Electron I could not notice such thing, so I want to know is there anything that can help me to handle AJAX calls in Electron. Is there methods like…
Aren Hovsepyan
  • 1,947
  • 2
  • 17
  • 45
0
votes
1 answer

headless browser test case failed - selemium grid

Selenium grid test case failed in headless browser mode only Normal Browser Mode [Test Success] selenium stand alone server : 3.0.1 Firefox : 38.0.1 ip : 192.168.1.40 Headless Browser Mode [Test Failed] selenium stand alone server : 3.0.1 Firefox…
Bilal Usean
  • 2,322
  • 3
  • 22
  • 45
0
votes
0 answers

It is possible to perform click using javascript in headless browser as click() operation is not working in my case

It is possible to perform click using javascript in headless browser as click() operation is not working in my case. As click using javascript is working on Firefox browser but it is not working in headless browser I am getting below…
0
votes
0 answers

PhantomJS could not find this element "driver.findElement(By.name("q")) selenium web driver Java

I have written code using selenium web driver java to search for school and to get the first url from the search . my code is working fine without PhantomJS. But as i want to use headless browser, trying the below code to make changes. WebElement…