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 get Firebug to match HtmlUnitDriver's pageSource report?

I'm using Java with the Selenium Library to scrape a webpage. When I use Firebug on the page in Firefox, I can see that the page's source contains the following HTML structure:
danger mouse
  • 1,457
  • 1
  • 18
  • 31
0
votes
1 answer

Headless/GUIless automation with Selenium Webdriver

I would like to save some resources on my low-spec Windows boxes by running the browser in a headless mode. As far as I am aware, PhantomJS + GhostDriver is the standard choice for such task to be used with Selenium Webdriver. However after trying…
Eugene S
  • 6,709
  • 8
  • 57
  • 91
0
votes
1 answer

NoSuchElement exception in selenium with phantomjs

When i run the java code using the headless browser phatomjs ,am getting this error ,please help me to solve this ? getting the below error phantomjs://platform/console++.js:263 in error Software Jar file version:Phatomjsdriver:1.2.1 exe…
Java_Alert
  • 1,159
  • 6
  • 24
  • 50
0
votes
0 answers

Running extracted javascript using V8 with simulated DOM API (document.write contains html)

Well, I have to admit this is a very odd question but I do need a solution ASAP: I am working on a JS testing project that requires the following working flow: extract all the js from a webpage use v8 shell or d8 to scan and parse those javascripts…
Wei Ding
  • 21
  • 1
  • 1
  • 4
0
votes
2 answers

Usage of TestNg, HtmlUnitDriver, selenium, Java and Eclipse

I'm trying to run a very simple code that retrieves the title of a page and uses assertion but in a Headless Browser. I'm using HTML Unit Driver. I will show my code, the libraries included and the result. I know the test case should be a pass but…
0
votes
2 answers

Unable to upload image file using sendkeys() when running tests in headless mode using xvfb?

What I'm trying to do here is upload an image file using sendKeys() in headless browser Firefox on a Linux machine (FYI: Tests are working fine in real browser FF:42, selenium 2.47.2) WebElement element =…
Ranjith's
  • 4,508
  • 5
  • 24
  • 40
0
votes
0 answers

Using PhantomJS on Windows Server 2008 results in JSON ValueError

I'm attempting to move some existing code for Selenium/Headless testing over to a machine which is running Windows Server 2008 R2. When even running the most basic PhantomJS code from selenium import webdriver phantomJSPath =…
Locke
  • 39
  • 4
0
votes
1 answer

JBrowserDriver Host name does not match the certificate subject provided by the peer

I am using the latest JBrowserDriver from here: https://github.com/MachinePublishers/jBrowserDriver. I want to eliminate the "Host name 'foobar' does not match the certificate subject provided by the peer" exception. Here's what I do with…
shackman
  • 11
  • 2
0
votes
0 answers

how to clone Same Linux configuration for another server

I am running a script with Selenium, Firefox headless in my linux server. It is running well for my server. But I cannot install/configure the same thing for another one. I am getting this error for my python script: Traceback (most recent call…
rhb
  • 1
0
votes
0 answers

Headless browsing working on google page but not on an AngularJS application

I wrote the sample selenium script to perform headless browser testing on a google page. public class Headless { public static void main(String[] args) throws InterruptedException { HtmlUnitDriver unitDriver = new…
TodayILearned
  • 1,440
  • 4
  • 20
  • 28
0
votes
0 answers

Headless browser not executing properly

I use selenium webdriver to automate my test-cases. My objective to execute headless browser using HtmlUnitDriver on a sample selenium script. Please find the script mentioned below: import org.openqa.selenium.By; import…
TodayILearned
  • 1,440
  • 4
  • 20
  • 28
0
votes
0 answers

Issue in headless testing

I have written a code in java using selenium web driver. I need to run that jar on the Google Computer Engine. I want headless testing so I have written below code for headless Firefox browser. Below is the link from where I got this…
0
votes
0 answers

Extended Html Unit Driver with screenshot capabilities

I am working on code (java) that will open up a selenium headless browser with HTML Unit webdriver and then take a screenshot. Unfortunately, HTML Unit does not support screenshots on its own, so I had to download an extended version: import…
Z Rev
  • 84
  • 1
  • 13
0
votes
2 answers

scrape span using BeautifulSoup

I was trying to scrape "span" tag using BeautifulSoup. here's my code.. import urllib from bs4 import BeautifulSoup url="someurl" res=urllib.urlopen(url) html=res.read() soup=BeautifulSoup(html,"html.parser") soup.findAll("span") But when I do so,…
0
votes
2 answers

Load Testing Web Applications That use AJAX

I'm trying to build a simulator that simulates hundreds of users on a web application. I'm usually using Microsoft Load Simulator and WebTests. If the webpage has some complexity I'm using WebTest plugins to adjust it correctly. Now, I have a web…
Pro
  • 1
  • 3