I also asked for answers on teratail, but
I will also post it here as it does not seem to solve the problem.
I'd like to use headlesschrome on lambda and use selenium.
It's not working.
I used this as a reference to build the environment.
The version is the same as this one.
It works locally, but
I get an error trying to run on lambda.
It looks like the send_keys method is not working.
By the way, the local is Python 2.7.16 and
Lambda is Python 3.7.
When I looked into various things,
I've seen some articles saying that set_keys are not compatible because the chrome-driver version is older.
Currently, the headless-chrominium version is not keeping up with the latest chrome version, so
I wonder if it is impossible for them to deal with it.
(The local chrome version is up to date, so does it work with the chrome-driver version?)
I switched the local Python version to 3 series (3.7.3) combined with lambda side and ran it.
It worked well locally.
If you know anything, please take care of me.
Code (Python)python selenium
I saw some articles saying that set_keys is not compatible because the chrome-driver version is old.
The headless-chromium, chromedriver version of the Qiita article that you referred to in building your environment and
Compare to the local headless-chromium, chromedriver version.
The Qiita article covered the headerless-chromium of v1.0.0-37 and the download of chromedriver_linux64 of 2.37.
However, the headless-chromium in the repository was v1.0.0-57.
Chromedriver also has a newer version.
I encountered a similar event, but please refer to the URL below.
It worked after I configured the .
I don't know if it's exactly the same thing, but just for your information.
So, it's another option that could lead to this error. You can fix it by removing it or changing it value to True.
© 2022 OneMinuteCode. All rights reserved.