You need to install the Firefox-driver. That’s what selenium uses to control the browser. You either download it or get it from Apt.
Is there more to the process? I downloaded firefox from both the webpage and through CLI and have them both moved to the ~/.local/bin directory(PATH) but still the error message appears to fail the test
There shouldn’t be.
It's not a solution to your problem, but have you tried playwright instead of selenium? For me playwright is great, it works with .NET, Java, Python, JS and TS
I actually am highly interested in jumping on the Playwright bandwagon; been hearing about it for a while and am looking to get into it soon. I just want to take the humble route of learning the more common tool first since it is still widely recognized as one of the basic requirement for test automation positions. Plus I want to comprehend the challenges at the beginning of the journey to eventually have an easier time working with the simpler tools later on.
It's probably because Firefox is default as a snap package on Ubuntu. I fixed mine by creating a symlink to the snap geckodriver to a directory in my $PATH. So for example:
ln -s /snap/bin/firefox.geckodriver ~/.local/bin
Thank you for responding. I tried creating a symlink, but, unfortunately, still face the same error.
Technology
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed