I have to build an web application on a linux webserver that will use selenium with firefox . When I run the application the the linux server "localhost:5000" it works perfectly fine . But when i tried it with "127.0.0.1:80" it is not giving me an error during webdriver loading:
driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver')
Error:
"Message: Unable to find a matching set of capabilities"
In nginx access.log it is producing a http 200 and there is nothing on error.log
in geckodriver.log it produce:
Listening on port 41209
Environment details:
- selenium = 3.8.0
- geckodriver = 0.18.0
- Firefox version 53
- python = 3.6
nginx imageApp.conf
server {
listen 80;
server_name 127.0.0.1;
location / {
include proxy_params;
proxy_pass http://unix:/home/administator/imageDetectionApplication/imageDetectionApplication.sock;
}
}
imageDetectionApplication.service
I am completely new in linux server...!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…