Похожие чаты

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

28 ответов

24 просмотра

run this and show what it says ls /usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver

Pagzoo- Автор вопроса
drunktimelord
run this and show what it says ls /usr/local/lib/p...

It says this:/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver

Pagzoo
It says this:/usr/local/lib/python3.8/dist-package...

ls -l /usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver

Pagzoo- Автор вопроса
Pagzoo
It says this:https://justpaste.it/3o92x

selenium expects a folder named geckdriver, that's a file

Pagzoo- Автор вопроса
drunktimelord
selenium expects a folder named geckdriver, that's...

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.

Pagzoo- Автор вопроса
Pagzoo- Автор вопроса
// AlenPaulVarghese //
btw thats not the executable file you need, you sh...

Can this geckodriver work: https://github.com/mozilla/geckodriver/releases ?

Pagzoo
Can this geckodriver work: https://github.com/mozi...

match the version with the version of firefox browser you are having

Pagzoo- Автор вопроса
// AlenPaulVarghese //
match the version with the version of firefox brow...

Firefox starts and then the python script gives the error

Pagzoo- Автор вопроса
// AlenPaulVarghese //
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

Pagzoo- Автор вопроса
Pagzoo
It is I added it

try running which geckodriver

Pagzoo- Автор вопроса
Pagzoo- Автор вопроса
// AlenPaulVarghese //
then its not in PATH

By adding it to .bashrc wouldn't it be in the path?

Pagzoo- Автор вопроса
// AlenPaulVarghese //
no

I will add it back to the path now

Pagzoo- Автор вопроса
// AlenPaulVarghese //
no

I added it to the path like this: PATH=$PATH:/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/geckodriver export PATH

Pagzoo
I added it to the path like this: PATH=$PATH:/usr/...

I already told you thats not the executable you need 🤦🏻‍♂️

Pagzoo- Автор вопроса
Pagzoo- Автор вопроса
Pagzoo
Ok

if you fail again, check out some youtube video about firefox automation using selenium.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта