docker-selenium-lambda icon indicating copy to clipboard operation
docker-selenium-lambda copied to clipboard

XVFB Configuration for non-headless mode

Open lukehamil55 opened this issue 3 years ago • 1 comments

Love this project, I have a new feature request:

How can this template be used to configure a XVFB display so that Selenium webdriver can run in non-headless mode? I have installed the XVFB wrapper in my docker file: RUN pip install xvfbwrapper

When I run the following snippet, it works perfectly:

from xvfbwrapper import Xvfb

vdisplay = Xvfb()
vdisplay.start()
vdisplay.stop()

Running Selenium works as normal, however when I combine the two, I get the following error: [ERROR] SessionNotCreatedException: Message: session not created from disconnected: Unable to receive message from renderer (Session info: chrome=96.0.4664.0)

More information can be found here: https://stackoverflow.com/questions/72650323/selenium-xvfb-unable-to-receive-message-from-renderer

lukehamil55 avatar Jun 21 '22 15:06 lukehamil55

This will allow for running extensions in Selenium to run as originally inquired by issue 81

lukehamil55 avatar Jun 21 '22 15:06 lukehamil55

There are good conversations in #85 and I think it is okay to close this issue.

umihico avatar Sep 27 '22 14:09 umihico