the first thing I wanted to do is, installing Selenium in Windows.
So installed Selenium with pip install selenium and tried to import it with
from selenium import webdriver
but I got the error
Traceback (most recent call last): File "C:\Users\admin\AppData\Local\Programs\Python\Python36-32\selentest.py", line 1, in from selenium import webdriver ModuleNotFoundError: No module named 'selenium'
So I made me an VM in VirtualBox (Kali Linux, Debian 64) and tried installing Selenium there.
It worked just fine, but then I got problems with the webdriver.
I chose the Firefox Geckodriver (geckodriver-v0.18.0-linux32.tar.gz at https://github.com/mozilla/geckodriver/releases)
I pat it into an folder named "Selenium" (/root/Desktop/Selenium) and placed the following script into it:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox("/root/Desktop/Selenium/")
driver.get("http://www.python.org")
And got the error:
root@kali:~/Desktop/Selenium# python main.py
Traceback (most recent call last):
File "main.py", line 4, in <module>
driver = webdriver.Firefox("/root/Desktop/Selenium/")
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 152, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities
Here is also an screenshot of the properties of the webdriver: https://i.sstatic.net/Sh4cY.jpg