How to Run Tests On Browsers
How to Run Tests On Chrome, FireFox & IE Browsers
Download the Chrome Driver - https://chromedriver.storage.googleapis.com/index.html?path=87.0.4280.88/
Download the Firefox Driver - https://github.com/mozilla/geckodriver/releases
Download the IE Driver - https://www.selenium.dev/downloads/
Packages To Import in PyCharm
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
Import time
Script:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver=webdriver.Chrome(executable_path="D:\Selenium\Browsers\chromedriver_win32\chromedriver.exe")
time.sleep(5)
driver.get("https://www.google.com/")
time.sleep(5)
print(driver.title)
print(driver.current_url)
print(driver.page_source)
print(driver.session_id)
print(driver.name)
driver.quit()
Download the Chrome Driver - https://chromedriver.storage.googleapis.com/index.html?path=87.0.4280.88/
Download the Firefox Driver - https://github.com/mozilla/geckodriver/releases
Download the IE Driver - https://www.selenium.dev/downloads/
Packages To Import in PyCharm
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
Import time
Script:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver=webdriver.Chrome(executable_path="D:\Selenium\Browsers\chromedriver_win32\chromedriver.exe")
time.sleep(5)
driver.get("https://www.google.com/")
time.sleep(5)
print(driver.title)
print(driver.current_url)
print(driver.page_source)
print(driver.session_id)
print(driver.name)
driver.quit()