nateshmbhat / webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
https://pypi.org/project/webbot/
Mozilla Public License 2.0
239 stars 87 forks source link

Error running on AWS lambda. #70

Open aktur opened 3 years ago

aktur commented 3 years ago

When embedding this code within lambda function it crashes with exception

File "/usr/local/lib/python3.9/site-packages/webbot/webbot.py", line 66, in init os.chmod(driverpath, 0o755) OSError: [Errno 30] Read-only file system: '/usr/local/lib/python3.9/site-packages/webbot/drivers/chrome_linux'

The problem is that on lambda the only writable directory is under /tmp. This problem can be solved in many ways, one like in #67 or existing pull request.