this is an extension from a previous post I made Here which I could not get to work but I am now getting a new error after updating Selenium.
I am using Python 3.5,
You need to set geckodriver path as mentioned below:
self.driver = webdriver.Firefox(executable_path = 'D:\Selenium_RiponAlWasim\geckodriver-v0.18.0-win64\geckodriver.exe')
Download geckodriver
for you suitable OS --> Extract it in a folder of your choice --> Set the path correctly.
I'm using Python 3.6.2 and Selenium WebDriver 3.4.3