Course Details
š¹ Introduction to Selenium What is Selenium? Use cases of Selenium (web automation, testing, scraping) Selenium WebDriver vs Selenium IDE vs Selenium Grid Installing Selenium (pip install selenium) Browser drivers (ChromeDriver, GeckoDriver, etc.) š¹ Setting Up Selenium with Python Downloading and configuring a WebDriver (e.g., ChromeDriver) Writing your first Selenium script Opening and closing a browser Navigating to a webpage (get()) š¹ Locating Elements Locators in Selenium: id name class name tag name link text and partial link text xpath css selector Best practices for selecting stable elements š¹ Interacting with Web Elements Clicking buttons (click()) Typing into input fields (send_keys()) Clearing text fields (clear()) Submitting forms (submit()) š¹ Browser Navigation and Control Navigating back and forward (back(), forward()) Refreshing the page (refresh()) Getting page title and URL (title, current_url) š¹ Waiting for Elements Importance of waits in automation Implicit Waits Explicit Waits (WebDriverWait, expected_conditions) Fluent Wait (intro) š¹ Handling Web Page Elements Dropdowns (Select class) Checkboxes and radio buttons Alerts and pop-ups (switch_to.alert) Frames and iframes (switch_to.frame()) š¹ Browser Windows and Tabs Handling multiple windows/tabs Switching between windows (window_handles, switch_to.window()) š¹ Advanced Interactions Mouse actions using ActionChains: Hover Drag and drop Right-click Keyboard interactions š¹ Capturing Screenshots and Logs Taking screenshots (get_screenshot_as_file()) Printing logs and errors š¹ Practical Use Cases Automating login Filling out forms Web scraping basics with Selenium Downloading files