in firefox. It runs and triggers firefox to open then it gives an error. Can you tell me what I can do to correct this? I googled, tried stack overflow, github, etc but nothing really came up that could help. What i can say is that the version of geckodriver is compatible with firefox. Please assist. Thank you https://justpaste.it/485x8
run this and show what it says ls /usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver
It says this:/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver
ls -l /usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver
It says this:https://justpaste.it/3o92x
selenium expects a folder named geckdriver, that's a file
Yea it does but i am stuck on how to provide a folder named geckodriver. Can i create one named geckodriver and put the geckodriver inside?
btw thats not the executable file you need, you should download geckodriver and put it in the PATH.
Ok i will have to do this
Can this geckodriver work: https://github.com/mozilla/geckodriver/releases ?
match the version with the version of firefox browser you are having
Firefox starts and then the python script gives the error
whats the error?
I wrote a python script to change the user agent in firefox. It runs and triggers firefox to open then it gives an error. Can you tell me what I can do to correct this? I googled, tried stack overflow, github, etc but nothing really came up that could help. What i can say is that the version of geckodriver is compatible with firefox. Please assist. Thank you https://justpaste.it/485x8
can you make sure that gecko is on PATH?
It is I added it
try running which geckodriver
Nothing comes up
then its not in PATH
By adding it to .bashrc wouldn't it be in the path?
I will add it back to the path now
I added it to the path like this: PATH=$PATH:/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver export PATH
I already told you thats not the executable you need 🤦🏻♂️
Is the executable in the link you shared?
if you fail again, check out some youtube video about firefox automation using selenium.
Обсуждают сегодня