Important Libraries
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by lmport By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
import time
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.chrome.options import Options
from selenium webdriver.remote.webelement import WebElement
- webdriver
imports the
webdrivermodule from the Selenium library, which allows you to automate browser actions like clicking, typing and navigating.
- Service
Serviceis used to manage the lifecycle of thechromedriver.exeprocess (starting, stopping, and communication).