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

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

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

driver = webdriver.Edge(executable_path='/home/codeaft/drivers/msedgedriver')
driver.maximize_window()
driver.get("https://codeaft.github.io/testapp/")
driver.close()
Comments and Reactions