1

I am using this python selenium code: from selenium import webdriver

from selenium import webdriver

driver = webdriver.Firefox(executable_path="/home/earth/Downloads/Python/geckodriver-v0.32.0-linux-aarch64 (1)/geckodriver.exe") driver.maximize_window() driver.get("https://www.google.com/")

2 Answers 2

2

I think your binary version is wrong. You are trying to launch geckodriver.exe which is probably the Windows version of the engine but it seems you are running on Linux.

Use this link to download the geckodriver-v0.32.0-linux64.tar.gz file

Sign up to request clarification or add additional context in comments.

6 Comments

No i am using the geckodriver-v0.32.0-linux64.tar.gz file seems i getting error
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 127..............this error i am getting
geckodriver-v0.32.0-linux-aarch64 is really your arch?
yes i am using this file
What is the output of uname -a in a terminal? I still think you are not using the right version
|
1
from selenium import webdriver
from selenium.webdriver import FirefoxOptions

opts = FirefoxOptions()
opts.add_argument("--headless")
browser = webdriver.Firefox(options=opts)

try using selenium ~=4.4.0, to remove the executable dependency

2 Comments

Message: 'geckodriver' executable needs to be in PATH.
Selenium needs a driver to work. Otherwise you will get an error to add the driver. Your answer with the given code example doesn't work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.