Skip to content

Commit

Permalink
Fixes to get the example working
Browse files Browse the repository at this point in the history
1) Change requirements.txt. See jairovadillo#17
2) Fix google.es xpath parsing. See jairovadillo#15
3) Bump recommended Lambda timeout
  • Loading branch information
Michael Ho committed Jun 26, 2019
1 parent 49cd768 commit 1658aeb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Everything is summarized into a simple Makefile so use:
* `PYTHONPATH=/var/task/src:/var/task/lib`
* `PATH=/var/task/bin`
* Adjust lambda function parameters to match your necessities, for the given example:
* Timeout: +10 seconds
* Memory: + 250MB
* Timeout: 30+ seconds
* Memory: 250+ MB

## Shouts to
* [Docker lambda](https://github.com/lambci/docker-lambda)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
selenium==2.53.0
chromedriver-installer==0.0.6
chromedriver-install==1.0.3
2 changes: 1 addition & 1 deletion src/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def lambda_handler(*args, **kwargs):

driver.get_url('https://www.google.es/')

driver.set_input_value('//input[@id="lst-ib"]', '21 buttons')
driver.set_input_value('//input[@name="q"]', '21 buttons')

driver.click('//center//img[@alt="Google"]')
time.sleep(0.5)
Expand Down

0 comments on commit 1658aeb

Please sign in to comment.