Selenium Python to launch the Chrome browser
kw.py
from selenium import webdriver

driver = webdriver.Chrome(executable_path='/home/kodingwindow/drivers/chromedriver')
driver.maximize_window()
driver.get("https://kodingwindow.com/testapp/")
driver.close()
Selenium Python to launch the Firefox browser
kw.py
from selenium import webdriver

driver = webdriver.Firefox(executable_path='/home/kodingwindow/drivers/geckodriver')
driver.maximize_window()
driver.get("https://kodingwindow.com/testapp/")
Selenium Python to launch the Edge browser
kw.py
from selenium import webdriver

driver = webdriver.Edge(executable_path='/home/kodingwindow/drivers/msedgedriver')
driver.maximize_window()
driver.get("https://kodingwindow.com/testapp/")
driver.close()
Advertisement