Похожие чаты

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 ответов

11 просмотров

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.

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

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

30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
16
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
Карта сайта