How to have a Headless browser for Armv7 Linux processor?

0 votes

I want a headless browser for web scraping. Recently I have tried 3 different headless browsers(Firefox, Chrome, PhantomJS).

But when using phantomJS, it throws this an error Armv7 processor needs GUI.

I tried this on Firefox with geckodriver and on this, it throws an error in the path and connection refused.

So I moved to chrome headless browser with chromedriver, but even this shows the same error as Firefox.

So, I need a proper headless browser for Armv7 processor. Can anyone suggest a solution for that or any other way to proceed further?

Mar 13 in Selenium by Surya
• 970 points
50 views

1 answer to this question.

0 votes

You can install the lower version of Selenium and this fixed my issue in a similar case.

$ pip install selenium==2.53.5

Or you can try the below procedure. 

geckodriver v0.19.0 the following versions are recommended:

Firefox 55.0 (and greater) Selenium 3.5 (and greater)

Download the geckodriver from https://github.com/mozilla/geckodriver/releases. After downloading, extract it and make it executable(in linux chmod +x path/to/geckdriver).

from selenium import webdriver

geckoPath = 'path/to/geckodriver';
browser = webdriver.Firefox(executable_path=geckoPath)
browser.get('http://stackoverflow.com');
body_html = driver.find_element_by_xpath("/html/body");
print body_html.text;

Hope this is helpful.

answered Mar 13 by Vaishnavi
• 1,160 points

Related Questions In Selenium

0 votes
1 answer

Using headless browser for Armv7 linux processor

Install the lower version of selenium.It fixed ...READ MORE

answered Mar 27, 2018 in Selenium by code_ninja
• 6,220 points
69 views
0 votes
1 answer

How to open a browser windows silently in the background?

It is a little bit of a ...READ MORE

answered Apr 20, 2018 in Selenium by king_kenny
• 3,650 points
176 views
0 votes
1 answer

How to Stop a For-Loop at a special number using Python

driver.find_elements_by_tag_name() returns a list of WebElements. You can use options ...READ MORE

answered May 25, 2018 in Selenium by Samarpit
• 5,130 points
33 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
592 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
901 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
580 views
0 votes
1 answer

How to pass parameters to a Junit test case from the Ant build tool?

The JUnit task accepts nested system property elements. <junit fork="no"> <sysproperty ...READ MORE

answered Mar 6 in Selenium by Vaishnavi
• 1,160 points
105 views
+1 vote
1 answer