from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.firefox import GeckoDriverManager
from webdriver_manager.microsoft import EdgeChromiumDriverManager

#driver = webdriver.Chrome(executable_path="C:\\Users\\way2automation\\Downloads\\Compressed\\chromedriver_win32_10\\chromedriver.exe")
#driver = webdriver.Firefox(executable_path="C:\\Users\\way2automation\\Downloads\\Compressed\\geckodriver-v0.29.0-win64_3\\geckodriver.exe")
remote_url = "http://localhost:4444/wd/hub"
#driver = webdriver.Chrome(executable_path=ChromeDriverManager().install())
#driver = webdriver.Firefox(executable_path=GeckoDriverManager().install())
driver = webdriver.Remote(command_executor=remote_url,desired_capabilities={"browserName":"firefox"})
#driver = webdriver.Edge(executable_path=EdgeChromiumDriverManager().install())


driver.get("http://way2automation.com")

driver.maximize_window()

title = driver.title

print(title)

assert "Selenium" in title

driver.close()

driver.quit()