xvfb

Is it possible to run xvfb on Heroku?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 06:35:36
I'd like to run xvfb on Heroku. On my mac, I used the dmg to install it. Would anyone have any idea how to go about this on Heroku? I came across these buildpacks ( http://github.com/douglasjsellers/heroku-xvfb-buildpack ) - but following the instructions didn't seem to solve the problem as xvfb is still not installed properly. Also, I tried installing the xvfbwrapper ( https://pypi.python.org/pypi/xvfbwrapper/0.1.0 ), but it's still not working on Heroku (apologies for what is potentially a noob question). Here is the error I get in my logs off of Heroku: 2015-02-24T02:09:16.035298+00:00 app

Headless endless scroll selenium

穿精又带淫゛_ 提交于 2019-12-04 19:56:30
问题 from selenium import webdriver from selenium.webdriver.common.by import By from selenium.common.exceptions import StaleElementReferenceException, TimeoutException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from bs4 import BeautifulSoup import urllib,requests,unidecode,lxml,pdb from pyvirtualdisplay import Display from xvfbwrapper import Xvfb class wait_for_more_than_n_elements_to_be_present(object): def __init__

WebDriverError error: Chrome failed to start: exited abnormally

天涯浪子 提交于 2019-12-04 11:57:04
I'm trying to run protractor test on ubuntu 14.04 vm (by google cloud), for some reason when i run 'protractor conf.js' i get an error says: E/launcher - WebDriverError: unknown error: Chrome failed to start: exited abnormally I followed this tasks in order to install headless chrome: https://gist.github.com/alonisser/11192482 Before running protractor cons.js, i'm running "webdriver-manager start" When i run 'Xvfb -ac :2 -screen 0 1280x1024x16' its freeze when gets to 'Initializing built-in extension GLX' I also tried change the conf.js to chromeOptions: { args: [ "--headless", "--disable-gpu

WebDriverException: Element is not clickable at point

久未见 提交于 2019-12-04 05:45:28
问题 Complete error org.openqa.selenium.WebDriverException: Element is not clickable at point (931, 23). Other element would receive the click: Running selenium tests using Jenkins in headless browser In following environment OS- CentOS 6 and Xvfb installed in same machine Xvfb screen resolution - Xvfb :1 -screen 0 1280x1024x16 & Driver - Firefox driver Selenium webdriver version - 2.52.0 The same test case working fine in windows os with firefox 回答1: Try this. Install Xvfb plugin on Jenkins.

Xvfb multiple displays for parallel processing?

≡放荡痞女 提交于 2019-12-04 03:21:02
Curious about running multiple xvfb displays: I have between 10-50 instances of a script running in parallel that connect to an xvfb display. Is is advantageous to run the same number of xvfb displays and connect 1 to 1? Or can multiple processes share the same display? RAM is not an issue, neither is processing power. One Xvfb server should be able to handle lots of connections quite well. One thing you want to make sure you do is run the server with the -noreset option. Without it, it has a memory leak every time a client disconnects. The only time multiple Xvfb servers is helpful is if you

Python XVFB error in windows

不羁的心 提交于 2019-12-04 01:24:00
问题 For virtual Framebuffer (headless testing) I'm using Xvfb with PyVirtualDisplay and it's working fine in Ubuntu but showing error in Windows7. here is part of code where problem is occurring. from pyvirtualdisplay import Display display = Display(visible=1, size=(300, 400)) display.start() but when I run same command in Windows, I get this error Traceback (most recent call last): File "C:\Python27\Scripts\pynt-script.py", line 9, in <module> load_entry_point('pynt==0.8.0', 'console_scripts',

xvfb run error in ubuntu 11.04

一个人想着一个人 提交于 2019-12-04 00:01:02
问题 My task is crawling the google search results using headless webkit(PyQt4.QtWebkit) in python. The module was crawling the results fine using PyQt4.I should have to execute this script in amazon ec2.So,I should have to use Xvfb (no x server in ec2). At the same time my module has to be executed in a loop.So, It was working fine for some iterations.After some looping module runs into "xvfb-run: error: Xvfb failed to start" How it is supposed to solve? This is my looping: for i in range(10):

Setting a test using xvfb + PyCharm + vagrant

我是研究僧i 提交于 2019-12-03 22:30:52
I have this environment: PyCharm running on Mac OS X Python3.4 environment running on Ubuntu Server in a vagrant instance I want to be able to run/debug tests using PyCharm. So far I can do it but I recently added selenium to my tests now I need to wrap the python interpreter within xvfb-run remote command. I tried adding a remote external tool but I can't make it work yet. I found this guy but he doesn't explain very well how he made it. Any idea would be very appreciated :-) chachan Thanks to this answer , I solved without adding an external tool. Steps: Installed xvfbwrapper on remote

Firefox -> PhantomJs Login to website not working

99封情书 提交于 2019-12-03 21:55:40
For some reason when I don't run headless I am able to log into http://www.neighborhoodscout.com . However when I run headless PhantomJS I am unable to login and it can't find an element it returns on success of a login. Phantom JS version 1.9.8 driver = webdriver.PhantomJS() driver.set_window_size(1124, 850) driver.get(url) time.sleep(2) driver.find_element_by_id("login").click() time.sleep(2) driver.find_element_by_id("user_email").send_keys(username) driver.find_element_by_id("user_password").send_keys(password) time.sleep(4) driver.find_element_by_id("login-button").click() Why does it

Headless endless scroll selenium

南笙酒味 提交于 2019-12-03 13:52:27
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.common.exceptions import StaleElementReferenceException, TimeoutException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from bs4 import BeautifulSoup import urllib,requests,unidecode,lxml,pdb from pyvirtualdisplay import Display from xvfbwrapper import Xvfb class wait_for_more_than_n_elements_to_be_present(object): def __init__(self, locator, count): self.locator = locator self.count = count def __call__(self, driver): try: elements