Questions tagged [selenium]

22 questions
12
votes
4 answers

Have Bash script wait for status message before continuing

I'm firing up Selenium server with a bash script and as you can see from the timestamps on the log below, it takes about 32 seconds for the thing to fully come online: Feb 28, 2012 10:19:02 PM org.openqa.grid.selenium.GridLauncher main INFO:…
Eric
  • 487
  • 1
  • 5
  • 10
8
votes
2 answers

Are there any good tools besides SeleniumRC that can fetch webpages including content post-painted by JavaScript?

One major shortcoming of curl is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl never picks up on this post-painted content. So to fetch…
dan
  • 4,007
  • 5
  • 26
  • 34
7
votes
4 answers

Error when executing headless firefox through Selenium

I am trying to execute headless firefox on the remote machine(running Ubuntu 16.04) through Selenium via SSH. However, this gives me a "Error: GDK_BACKEND does not match available displays" error. My host machine runs Windows. I do not want to see…
goluhaque
  • 191
  • 1
  • 1
  • 6
4
votes
3 answers

connection refused (os error 111) using python selenium & geckodriver

i am quit new to webscraping, i am building a personal app with python on debian buster and firefox geckodriver as follow, the server is online firefox_binary = FirefoxBinary('/usr/bin/firefox') opts =…
madj
  • 43
  • 1
  • 4
3
votes
1 answer

How to get private IP address of EC2 after spinning the AWS from local machine/ at Jenkins outside AWS

Assume we already spin the AWS using cloudformation plugin from Jenkins outside AWS and now, how to get private IP address after spinning the AWS at my local machine/jenkins using any API methods? I tried ruby aws-sdk, REST API methods to get the…
user176867
  • 31
  • 3
2
votes
0 answers

How to fix trace trap / SIGTRAP when running google-chrome in Debian

having an issue running that's driving me crazy and would love to have some help debugging. Basically, I'm trying to install Google Chrome on Debian stretch for use with selenium and, while the install goes fine, it crashes on boot with a SIGTRAP I…
Greg Gascon
  • 121
  • 2
2
votes
1 answer

How to securely automate periodic website logins

I'm writing a webpage-monitoring program that, every hour, logs in to a website using Selenium and notifies me if the page has changed in a particular way. For example, this program can monitor my cell phone data usage and warn me if my usage is…
1
vote
0 answers

Selenium XVFB - Unable to receive message from renderer

Overview: Selenium scraper works perfectly in headless mode. Spawning a virtual display shows no errors via XVFB: from xvfbwrapper import Xvfb vdisplay = Xvfb() vdisplay.start() vdisplay.stop() But when I try to run them together, it errors out…
1
vote
0 answers

Virtual Display but with GPU/Hardware Acceleration

To do some automated screen recordings for promo videos of web applications I'm using chromium/selenium inside of xvfb to run the web application and ffmpeg to record the video. Even tough this looks ok, sometimes it seems to be laggy during some…
hypnomaki
  • 111
  • 6
1
vote
1 answer

FreeBSD Selenium PhantomJS - Can not connect to the Service

i am stuck to run PhantomJS with selenium. So i have prepared a FreeBSD Jail and installed phantomjs via ports. whereis phantomjs > phantomjs: /usr/local/bin/phantomjs /usr/ports/lang/phantomjs /usr/local/bin/phantomjs -v > 2.0.0 My script looks…
raxer
  • 41
  • 1
  • 4
1
vote
1 answer

Installing Firefox on EC2 using Lambda Linux Project

I'm trying to set up a nodejs+selenium server on ec2. I got node installed and working and I tried to set up Firefox using the tutorial here: https://lambda-linux.io/blog/2015/01/28/announcing-firefox-browser-support-for-amazon-linux/ I got it all…
0
votes
0 answers

Limit the total CPU usage for the entire system?

I'm running a Chrome instance on a NAT VPS. Being a NAT VPS it has some restrictions such not not allowing a 15min average load greater than 1. However, just starting and going to a few webpages causes the load to increase > 2 killing the…
DentFuse
  • 35
  • 5
0
votes
0 answers

Chrome UI wouldn't display in selenium test

The issue is when I try to run a test with selenium in linux, the chrome ui does not appear, although I can see signs that the browser is active like the location where the browser should be getting getting laggy and my code reaching its checkpoints…
0
votes
1 answer

updating selenium on ubuntu?

I'm running selenium on linux (ubuntu) but I beleive it is an old version. Can someone tell me whether there's an easy way to update selenium on ubuntu using command line? I couldn't find anything online explaining how to do this? Thanks.
0
votes
1 answer

How to save the output of linux command to a file in local

I have SSH to a server and have a syslog at usr/local. I am using the command tail -f syslog.log | grep fps and want to save the output of it to a file. I have tried to SCP as below % scp [email protected]:/usr/local/syslog.log…
1
2