While using Selenium Webdriver, the following warning is encountered DeprecationWarning: executable_path has been deprecated

In the recent days, while using the selenium webdriver with Chrome browser, many users would have encounter the Deprecation Warning messages in the output window. Though these warnings don't halt the execution, but developing a code without any warnings is always considered a good programming practice.

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
import time

driver = webdriver.Chrome('C:\Program Files (x86)\Google\Chrome\Application\chrome.exe')
action = ActionChains(driver)

driver.maximize_window()  
driver.get("https://www.google.com/") 
time.sleep(5)

driver.find_element_by_name("q").send_keys("DeprecationWarning") 
driver.find_element_by_name("btnK").send_keys(Keys.ENTER)