blackboard / lambda-selenium

Use Selenium Webdriver and Chrome inside AWS Lambda
MIT License
230 stars 51 forks source link

Firefox support #20

Open tsu-denim opened 6 years ago

tsu-denim commented 6 years ago

We need examples for running Firefox in Lambda, however nobody has figured this out. I'm sure its possible though...

tsu-denim commented 6 years ago

I think we have this working now as well, we'll post an example soon.

hideintheclouds commented 6 years ago

Any news regarding this?

tsu-denim commented 6 years ago

A small update: In the docker version of Lambda, we have got it working. However in the real Lambda we have not :(. FYI, don't use the docker version to try and get it working, its too different than the real thing for this purpose.

mbruning24 commented 6 years ago

https://github.com/adieuadieu/serverless-chrome/issues/62

I was able to get like 90% of the way but the gtk binaries were throwing errors after launch. Maybe somebody can pick up where I left off?

edmz commented 5 years ago

@mbruning24 did you manage to run it? regards!

mbruning24 commented 5 years ago

@edmz no I never got it to work. I was able to get headless Firefox to run on an ec2 with the AMI that lambda functions are built with, and I tried to follow the pattern of executing "ldd" on the lambda shell to identify linked libraries to put in the /lib folder of my deployment package, which gtk3 was a part of.

Even after ldd showed it was available, running headless Firefox produced gtk not found errors that I wasn't getting on the ec2. So I hit a wall, as I don't really have much experience debugging these kinds of Linux issues.

Every thread I've read in the past year focuses on using xvfb to run headless Firefox on Linux but the total size of xvfb, firefox, and the webdriver would be way over the /tmp size and certainly larger than the deployment package size.

I would be immensely happy if somebody could solve this because I'm trying to build an architecture to run massively parallel selenium tests on lambda with Firefox support. Either that or I'll just hope and wait for Cypress to get FF support 😁