Questions tagged [selenium]

Selenium is a popular open-source tool for automating web browsers.

Selenium is a portable software testing framework for web browsers automation. Selenium provides a test domain specific language (DSL) to write tests in a number of popular programming languages, including Java, C#, Ruby, Groovy, Python, PHP, and Perl. Test playback is possible in most modern web browsers.

48 questions
12
votes
4 answers

How can I install and set up Selenium WebDriver on Ubuntu 16.04?

What should I do in order to install Selenium WebDriver in Ubuntu 16.04 (Xenial Xerus)?
A. Alam
  • 121
8
votes
3 answers

Cannot create a crontab job for my scrapy program

I have written a small Python scraper (using Scrapy framework). The scraper requires a headless browse... I am using ChromeDriver. As I am running this code on an Ubuntu server which does not have any GUI, I had to install Xvfb in order to run…
Hooman Bahreini
  • 518
  • 1
  • 8
  • 24
4
votes
1 answer

What's the difference between Try Ubuntu and Install Ubuntu option in VirtualBox?

What is the difference between "Try Ubuntu" and "Install Ubuntu" option? I have VirtualBox on my Windows 10 and have downloaded Ubuntu ISO on my desktop. I have configured the VirtualBox and provide Ubuntu ISO for Virtualbox. I get two options -…
3
votes
1 answer

How is "chromium-chromedriver" package used?

Firefox selenium driver seems to be crashing (perhaps because I'm on Firefox-beta ppa?): >>> from selenium import webdriver >>> webdriver.Firefox >>> webdriver.Firefox() Traceback (most recent…
NoBugs
  • 1,440
3
votes
2 answers

Chrome - DevToolsActivePort file doesn't exist

My system: Ubuntu 20.04 (AWS) Python 3.8.5 ChromeDriver 88.0.4324.96 Google Chrome 88.0.4324.182 Error: unknown error: DevToolsActivePort file doesn't exist The process started from chrome location /usr/bin/google-chrome is no longer running, so…
3
votes
2 answers

How to make python wait for a program to stop before going to the next line of code

I'm creating a script in python that will open a program then python will wait for that program to close itself before continuing to the next code. Here is my script: Import subprocess as…
3
votes
2 answers

I want to install selenium webdriver in my Ubuntu 16.04 system for python

When I install Selenium I get the following error: Shubham@Shubham-To-be-filled-by-O-E-M:~$ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB] Hit:2 https://repo.skype.com/deb stable InRelease …
2
votes
1 answer

24.04 Python Selenium Firefox driver broken

I had a previously working python script (on 22.04) that uses the Selenium package with the Firefox driver. Now it seems that the Python Selenium package can never find the Firefox Driver geckodriver, but it's possibly the driver location. The…
Kingsley
  • 388
2
votes
1 answer

Always launching google chrome in incognito mode

I am using ubuntu 20.04. I want to launch google chrome always in incognito mode by default. Is this possible in ubuntu. I read its not a common practice to do this. And will it have any effect if we use selenium chrome driver for scraping purpose…
2
votes
1 answer

Create a PDF with version PDF/X-1a:2001

I need to create a PDF file on the console in the format 300 DPI PDF-VERSION: PDF/X-1a:2001 Colors: Coated Fogra 39 I use python to take a screenshot in 5 dpi from a ZeroNet site with selenium: options = Options() options.headless = True profile…
rubo77
  • 34,024
  • 52
  • 172
  • 299
2
votes
1 answer

Can I run multiple scraper at the same time using cron jobs?

I have schedule some crontab jobs to scrape a number of websites. I have set some cron jobs to run the scrapers at 1 AM, scraper_1 starts on 1:01, scraper_2 starts on 1:03 and scraper_3 starts on 1:05 Each scraper may take 3 to 6 mins to complete,…
Hooman Bahreini
  • 518
  • 1
  • 8
  • 24
2
votes
1 answer

How to run Selenium Grid on Ubutnu 20.04

I have Ubuntu 20 VPS. I would like to run Selenium grid on it. So I have downloaded selenium .jar file and I am able to run hub and nodes on the server. But as I see I am able to register node from outside the VPS machine e.g. from my local machine…
Čamo
  • 849
2
votes
0 answers

WebDriverException: Message: Process unexpectedly closed with status signal | How to run Selenium Firefox Geckodriver in Google Colaboratory?

Hey stackexchange community, I would like to run selenium for python, with firefox geckodriver in google recolab. I've found a post regarding this topic recently in which there's an answer by @DebanjanB from a while ago:…
Mika C.
  • 21
2
votes
2 answers

Selenium issues webdriver

im very new in this. I'll try to explain everything and im sorry before hand if i say something nub I'm trying to make Selenium wokrs in Linux Server, so it's just commands. Everything is already installed (Chrome - chromedriver - python -…
Nembone
  • 21
  • 2
2
votes
1 answer

How to setup Selenium for Firefox in Kubuntu 18.04 properly

for an upcoming automation project I want to utilize Selenium for Firefox. I followed THIS GUIDE. Now when I want to run the mentioned script from within that guide using 'node /path/to/script/scriptName.js, a Firefox window pops up for a milisecond…
erzwo
  • 173
  • 8
1
2 3 4