I\'m trying to invoke a firefox browser using Selenium webdriver from below python code..
from selenium import webdriver
# Initializing the WebDriver for Firef
You need to take care of a couple of things as follows :
You need to pass the Key executable_path along with the Value referring to the absolute path of the GeckoDriver through single backslash i.e. \
along with the raw i.e. r
switch as follows :
from selenium import webdriver
driver = webdriver.Firefox(executable_path=r'C:\selenium\mozilla\geckodriver.exe')
driver.set_page_load_timeout(30)
driver.get("https://www.google.com/")
driver.quit()
Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
@Test
.