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

phantomjs works only on windows

I have found some strange issue. I'm using PhantomJs v2.1.1 on Windows 7 and Ubuntu 16.04. I tried to open page https://my.avast.com and under Windows it has succeeded but on Ubuntu it has failed. Also I tried to run example .js script added to…
fotrenc
  • 45
  • 6
0
votes
1 answer

Website asking for verification code when logged in using casperjs or a new browser

Trying to login into admin.booking.com and scrap out all the bookings of my hotel from the reservation page. But the thing is whenever I login using CasperJS or from a new location (new browser) it's asking for phone verification. Its redirecting…
Bhuwan
  • 177
  • 2
  • 12
0
votes
1 answer

phantomjs - open page does nothing

I spent a lot of time to narrow down the problem I faced. I am doing my first project on phantomjs and can't execute even simple example Could anybody try on your working version of phantomjs ? var page = require('webpage').create(); var url =…
Sergey Glazyrin
  • 81
  • 2
  • 10
0
votes
1 answer

Headless test automation with Firefox using Xvfb on linux Jenkins CI server

I am trying to use Xvfb with firefox to run test automation headless. However, I am getting the following message on starting xvfb. XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 _XSERVTransOpen: transport open failed for…
fongfong
  • 175
  • 3
  • 14
0
votes
1 answer

PhantomJS multiple log files and log rotating

I need help with logging functions in PhantomJS. I want to render canvas images on the server side with PhantomJS. This part runs very well, but I can't figure out how to setup a good logging function in Phantom. I want to separete logs due to their…
Modern Labs
  • 1,027
  • 8
  • 6
0
votes
1 answer

In Jenkins haedless browser :org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died

Hi I am executing scripts on Jenkins headless browser using Selenium web driver and Java. After two or three scripts run I am getting below error this problem I observer when I will run multiple scripts at one run but when I executed single script…
0
votes
1 answer

How do I run headless selenium on Ubuntu Server

I'm trying to run headless selenium and to get to grips with it I've set up a new droplet on Digital Ocean (Ubuntu 16). I am following this tutorial but I'm getting the following error when I run the script. Traceback (most recent call last): File…
HenryM
  • 5,557
  • 7
  • 49
  • 105
0
votes
1 answer

Perform click operation in succession on dynamic list of selected elements in nightmare js

I just started using nightmare. I was using it on my web page for testing purpose. I have following user interface. menu tab1 | tab2 | tab3 ......(dynamically generated tabs) container div for selected tab selected tab data I got the…
WitVault
  • 23,445
  • 19
  • 103
  • 133
0
votes
2 answers

selenium webdriver select an option in dropdown menu using python on headless Linux with firefox browser

I have this code: #!/usr/bin/env python from pyvirtualdisplay import Display from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.support.ui import Select from pyquery…
Dung
  • 19,199
  • 9
  • 59
  • 54
0
votes
1 answer

Unable to scrape a url by PhanthomJs

I have an page which is probably somehow protected from scraped by headless browsers, but I don't know for sure, of course. The thing is, in a browser it loads well, javascript executes and everything is good. When using phanthomjs, it doesn't,…
Jio
  • 203
  • 2
  • 4
0
votes
1 answer

Unable to load a page using Hound in Elixir

I'm trying to request a page and inspect it but I get: ** (exit) exited in: GenServer.call(Hound.SessionServer, {:change_session0.100.0>, :default, []}, 60000) ** (EXIT) an exception was raised: ** (MatchError) no match of right hand side value:…
Meji
  • 977
  • 2
  • 8
  • 10
0
votes
0 answers

Disappear a button in Python-selenium Headless Testing

I try to scrape this site with Python-selenium, my problem is when i launch my script in local it works and i scrape all the articles, but when i launch my script in server, i should run my code Headlessly with Xvfb display = Display(visible=0,…
parik
  • 2,313
  • 12
  • 39
  • 67
0
votes
0 answers

Website does not detect Java on PhantomJS 2.1.1

I'm trying to just get into the webpage with a Java applet and every single time i run a test on it I get the same prompt which basically says i have no Java on the browser. The check the site performs is: if (deployJava.versionCheck("1.7+") ==…
rogegar
  • 1
  • 1
0
votes
0 answers

How to get response of click or submit event via Phantom.js

I am new to using Phantom.js . I am trying to get the response of a click event via Phantom.js. But i am unable to get. i just want to know how one can get the response of any event like click, submit or other. I tried to get the response from…
Parveen yadav
  • 2,252
  • 1
  • 21
  • 35
0
votes
1 answer

Casperjs cannot access same global objects as in from browsers console

I am new to Casperjs, phantomjs .I have been trying hard to create some page automation to login and take some steps in a CMS but i am having issues with accessing the global window variables from casperjs evaluate() function. the below example is…