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, 2019 in Selenium by Surya
• 970 points
1,715 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 14, 2019 by Vaishnavi
• 1,180 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,290 points
742 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,710 points
5,257 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,910 points
453 views
0 votes
2 answers

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,500 points
12,751 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,622 views
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,910 points
6,697 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,561 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 7, 2019 in Selenium by Vaishnavi
• 1,180 points
1,567 views
+1 vote
1 answer

How can Selenium select each div separately that have the same class

Hi Surya, you have already got the ...READ MORE

answered Mar 14, 2019 in Selenium by Vaishnavi
• 1,180 points
24,388 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP