Comments (3)
Hi @Moondog360,
Please set the full URL like this
https://www.google.com
from selenium-python-aws-lambda.
I did do that too. Turned out that it was a timeout issue so changing it from 10 seconds to 15 seconds seemed to fix that problem but now I ran into another problem.
I changed the lambda_function.py to just add one line which is
if 'url' in event.keys():
driver.get(event['url'])
page_data = driver.page_source
driver.find_element_by_id('action-button').click() # added this line
print(page_data)
driver.close()
I zipped the code and uploaded everything like I did before but it's complaining about
{
"errorMessage": "Unable to import module 'lambda_function'"
}
So not sure why this is happening now.
from selenium-python-aws-lambda.
Managed to figure out what was wrong. I was not compressing it correctly. I compressed the folder the code was in instead of going into the folder then select everything and compress to .ZIP. This might have been the same problem one of the guys on your website comments section had and didn't realize everything had to be at root of the zip file if that makes sense.
from selenium-python-aws-lambda.
Related Issues (12)
- "errorMessage": "Message: 'chromedriver' executable may have wrong permissions. HOT 9
- selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions.
- Timed Out Error HOT 2
- chromedriver' executable needs to be in PATH. HOT 3
- Returning Empty HTML
- Won't work after change. HOT 5
- SAM local run Error HOT 1
- Zip/Unzip no longer works HOT 2
- OSError: [Errno 8] Exec format error HOT 1
- How to add additional packages like boto3 HOT 3
- Not Run HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium-python-aws-lambda.