
Learn Python from basics to advanced through challenges and exercises, then master CSS selectors, Selenium, and WebDriver, before designing and implementing a live test automation framework for a live website.
Explore automation and test automation, and learn to build a test automation framework. See hands-on samples that automate Facebook posts, social media actions, and Telegram bot creation with task scheduling.
Explore the definitions of automation and programming, and see how scripts and bots automate daily tasks. Learn why Python is chosen for simple, practical automation.
Install python from the official python.org website and download the latest version (3.11.1). Set up an IDE, such as Visual Studio Code, and install Jupyter notebook for code in notebooks.
Set up your environment with Visual Studio Code and Jupyter notebook, install Python and essential extensions, and learn to create, run, and manage Python files and notebook cells.
Write your first Python program using the built-in print function to display text and numbers. Learn about strings, integers, and proper quoting, then run your code to print hello world.
Learn how to declare and initialize variables in Python, print their values with the print function, and use the built-in input to capture a name for a welcome message.
Learn how to name variables in Python and other languages; avoid starting with a number, allow underscores and digits in the middle or end, and reject special characters.
Design a program that adds two numbers by prompting the user for the first and second numbers, storing them in variables, and printing the sum.
Capture two numbers with input, convert them to int or float, and perform addition to avoid string concatenation. Explain Python’s type function to inspect variable types and numeric conversion.
Explore strings in Python by creating string variables, printing them, and using the length function to count characters, including spaces. Recognize that strings concatenate with + and differ from numbers.
Master numbers in Python and perform arithmetic operations. Learn to fix type errors by casting between strings and integers.
Learn to build a Python program that calculates the square root of a user-entered number and prints the result, such as turning 36 into 6.
Compute the square root of a user input in Python by converting it to float, calculating the root, and displaying the result with two decimal places using string formatting.
Explore built-in functions in Python, such as type and print, define your own function to sum two numbers, and use int and float conversions with proper indentation.
Compute triangle area using Heron's formula by calculating the semiperimeter from a, b, and c, then evaluate sqrt(s(s-a)(s-b)(s-c)) with Python's power operator.
Take three float inputs a, b, and c for the triangle. Compute the area with s = (a+b+c)/2 and area = sqrt(s*(s-a)*(s-b)*(s-c)), then print the result.
Learn how Python uses lists, defined with square brackets, to store multiple values, access items by index, and perform operations like append, clear, remove, and sort, with indexing rules.
Learn to swap two numbers in a simple Python program by exchanging the values of x and y, as part of the Python made simple course.
Swap two variables in Python by using a temp variable, read x and y with input (string or integer), and print results using format placeholders and the format method.
Learn to build a Python login system script with a function to validate a username and password, manage a five-attempt limit, and print login successful or login failed.
Learn to create and manipulate dictionaries in Python, including adding key-value pairs, accessing values by keys, and using common methods like keys, values, items, update, and get.
Explore how to use if statements in Python, including indentation, nested conditions, and else branches, with practical examples checking numbers for positive, zero, or negative and parsing input as integers.
Learn to write a Python script that finds the largest of three numbers using if, elif, else, with user input and proper indentation, and print the result.
Open and read text files using Python's open function, learn file modes and reading lines, and explore writing to files, with a brief nod to using pandas for larger data.
Open a Python file in write mode, write lines to the file, use newline escapes, then close the file and read back to verify updates.
Learn to open, read, and write files in Python, append data with the a mode, and use a+ for reading and writing in the same file.
Explore how to use for loops in Python to iterate over lists, dictionaries, and strings, printing items, keys, and values.
Explore the while loop by using a condition to repeat actions, see how input drives the loop, and build a password checker that prompts until the correct password is entered.
Learn to process multiple lists with one for loop using zip to pair keys and values. Print the paired keys and values in a human readable format.
The lecture highlights the value of student feedback, thanking learners for reviews and expressing how their input guides course improvements and refines content for the learning journey.
Learn how to generate a random number in Python using the random module, including installation, importing, and using a range to produce numbers between zero and ten.
Learn to determine if a number is odd or even in Python by using user input, integer casting, the modulo operation, and if-else with string formatting.
Learn to check if a number is prime by testing divisibility with modulo in a loop, handling inputs and edge cases like negative numbers.
Learn to find prime numbers between a lower and upper bound by using a for loop through the interval and testing each number for primality.
Learn to build a Python factorial finder that prompts for a number, handles negative input, zero, and uses a for loop with range to compute and print the factorial.
Learn to build a Python quiz app that runs in Visual Studio Code, prompts for play, asks three questions, validates answers, tracks score, and shows a final percentage.
Prompt the user for a number and generate its multiplication table from 1 to 11, displaying each line with an x and equals sign, as demonstrated with input 5.
Generate the fibonacci sequence in Python and Java by prompting for the number of terms and printing it with a while loop.
Solve a five-digit safe box pin puzzle by reading five conditions and coding a program to satisfy them, including sums and relationships among digits and a total of 30.
Build a python solution to crack a safe box pin. Use a for loop with zfill to generate five-digit candidates and apply constraints to identify the pin.
Create a simple python calculator by defining four functions for add, subtract, multiply, and divide, then loop to receive user input and perform selected operations.
Create a simple Python number guessing game using the random module, with input validation for a positive top range and a while loop that provides higher or lower feedback.
Learn to crack a zip file password with Python by iterating a password list, using the zip file module, and reporting the found password.
Learn how CSS selectors target HTML elements using tag, class, and id to style web pages, with practical examples of body, header, and info selectors.
Select elements by id with CSS selectors, where a hash denotes the id attribute; inspect pages, copy the selector, and access fields like username and password.
Learn how to locate an input element by its id and send keys using Selenium's WebDriver, with alternatives like name and CSS selector and notes on element attributes.
Learn to select web page elements using class names, ids, and names, and apply css selectors with dot notation to target inputs like username and password.
Learn to combine multiple selectors to locate a unique element when a single attribute isn't unique, using ID, class, and tag combinations for precise element selection in automation.
Discover how to locate a unique web element by mixing two or more attributes such as id, class, label, and placeholder in Selenium, then apply these selectors in code.
Explore automating web interactions by selecting elements with mixed attributes like id, class, and tag name. Print the password text using combined selectors.
Learn to select web page elements with dynamic prefixes, suffixes, and substrings using robust selectors. Identify inputs such as first name by matching dynamic id patterns across refreshes.
Target a parent select, then a child option, using the greater-than selector to pick a month by value. Inspect the month select and choose options by their values.
Discover how to apply the next sibling selector to navigate between month options, select the second or third option, and handle cases where access to certain options differs.
Learn how to use CSS selector pseudo-classes to target dynamic options, including first-child, last-child, and nth-child, and apply the child and greater-than combinators for precise option selection.
Explore how xpath, or xml path language, locates web elements in html documents by navigating the dom, using attributes like id, class, and name, and copying xpaths to targets.
Learn to locate two input fields with xpath in selenium using python automation and fill them with send_keys, targeting first name and last name by their id.
Master absolute and relative XPath to locate page elements by HTML structure, using single or double slashes, and select by id or class for robust automation.
Explore the start with function to locate dynamic and static elements using xpath and css selector, and see how it handles changing ids on Facebook signup page's first name input.
Learn how to use the content function in XPath to locate dynamic web elements with partial attribute values, including contains, starts with, and middle matches, with practical Facebook signup examples.
Learn to use the XPath text function for exact text matches, locate elements by text, and click links like 'already have an account' to reach the login page.
Use and and or with xpath to locate elements by multiple attributes, such as id, class, and type. Learn about spaces in class values for accurate matching.
Discover the axis method with xpath, using parent, child, and self to navigate HTML. Practice selecting a parent by tag and attribute, all or specific children, and the current element.
Explore descendant and descendant or self selectors to target an element’s children and grandchildren, including the element itself, using examples with container divs, rows, and paragraphs.
Explore how ancestor and ancestor-or-self in xpath select parent, grandparent, and self, with practical demonstrations on div elements with class row.
Learn how Selenium, an open-source automated testing framework, validates web apps across browsers using Python. Lecture covers installing Selenium, configuring chrome driver, and launching pages with driver to retrieve titles.
Launch chrome with a chrome driver, open Facebook, and capture the page title with driver.title before quitting; then explore Selenium documentation and language bindings across Python, Java, and more.
Learn to use web driver manager to automatically download and manage browser drivers for Chrome and others, enabling seamless cross-browser testing in Python with Selenium.
Explore the DOM, document object model, and learn to identify and interact with web elements using id, class, and other attributes in Selenium automation.
Explore the document object model and web elements, then use selectorhub and xpath tools to inspect, copy css selectors and xpaths, and identify ids, classes, and names for automation.
Learn how to locate web elements with Selenium Python using by id, name, class name, and XPath, and how to input text with send keys for a Facebook login form.
Learn how to define classes and functions in python, locate email and password elements by id, and interact with them via a class method for a facebook login example.
Learn to select web elements by name and by XPath, replacing id-based selection to target email and password fields, with practical examples and wait times.
Explore selecting elements with css selectors, including by name and id, and apply these selectors to fill email and password fields and automate a login flow.
Learn to select elements by link text and partial link text, use link.click to navigate, and apply these techniques to automate actions like clicking forgot password.
Learn to select elements using the tag name to access and click the login button, handling non-unique tags and choosing the first match.
Learn to select elements by class name in automation, manage unique and multiple class names for email, password, and the login button, and diagnose no such element errors.
Master essential selenium web driver commands to automate browser tasks, including navigation, current url, back and forward, refresh, title, and window controls such as maximize, minimize, and full screen.
Learn how to locate multiple webpage elements with driver.find_elements using tag name in Python, then iterate and print each element's text to extract links from a page.
Learn to extract and print text from web elements using Selenium by locating elements with tag name, class name, or CSS selector, then printing the element text.
Learn how to retrieve an attribute value from a login page element using a get attribute value function, exploring id, type, and maxlength with a web driver.
Use a web driver to check if the login button is enabled or disabled by locating the element with its id, reading its state, and simulating username and password input.
Learn to use Selenium to inspect and toggle element visibility with is_displayed, locate elements, click a button, and verify display state before and after interactions.
Learn to automate checkbox handling with selenium by locating the element by id or XPath, clicking to tick the box, and maximizing the window to verify the result.
Learn to handle radio buttons in web automation by inspecting inputs, using value and XPath selectors, and clicking to select one while deselecting others, with examples from sign up page.
Learn how to handle dropdowns in selenium using the select tag, including selecting by index, value, or visible text, with examples from a Facebook signup page.
Learn to handle auto suggestion in selenium by locating the search input, typing a query, iterating through the auto suggestion items, and clicking the matching result like 'python compiler'.
Automate calendar date selection in web forms by opening the calendar, locating date elements within the month wrapper, and clicking the target date using dynamic attributes and iteration.
Learn how to take screenshots with selenium, including element screenshots and full page screen captures, using driver methods and file naming strategies.
Explore launching web pages with JavaScript and Selenium, using driver.execute_script and window.open to open facebook.com, compare with driver.get, and control timing with sleep.
Learn to handle multiple windows with Selenium by using window handles, switching between pages, and managing parent and all handles to interact with new tabs.
Learn to work with iframe in web automation by switching to frames, using index-based access, and clicking elements inside nested iframes using xpath.
Learn to handle JavaScript alerts in the Python made simple: the complete automation course, by switching to iframes and managing alert types with ok, cancel, and prompts, including sending input.
Learn to automate mouse over interactions with Selenium by logging into a site, using action chains to move to elements, and click through hidden options like free credits.
Master right click and double click actions in selenium using action chains, including context click, element locating, and testing with Guru99 web page.
Switch to the iframe demo frame to access the draggable and drop targets, then perform drag and drop with Selenium action chains or offsets.
Master handling a slider in Selenium with drag and drop by offset and click and hold, locating left and right handles and moving the slider to filter results.
Learn how Selenium waits, including implicit and explicit waits, replace sleep with dynamic element handling to make automation faster and more reliable.
Master explicit wait in Selenium to target an element, and compare it with implicit wait. Apply this to a login flow that waits for the three button to become clickable.
Learn to implement fluent wait in Selenium with explicit wait, including poll frequency and ignore exceptions for element not visible or not selectable, using the driver, timeout, and frequency settings.
Remove the selenium deprecation warning by using a service object when launching Chrome. The video shows importing Service, creating a Service with the path, and passing it to webdriver.
Install pytest for Python using pip, verify the version and path, explore the official docs, and start testing your code with your first pytest test.
Learn to write your first pytest test in Python by configuring a project, installing pytest, creating a test file with assertions, and running tests to see pass and fail results.
Run pytest from the command line to execute tests across a project. Learn to run all files and use -V for verbose output and -k to filter tests.
learn to use pytest markers to selectively run tests with -m, mark, and built-in markers like skip and xfail, control reporting, and skip or deselect tests as needed.
Explore pytest fixtures to provide setup and teardown for tests, using a simple ecommerce example with login, browsing, add-to-cart, and removal, plus yield-based teardown in selenium automation.
Explore pytest fixtures and conftest to manage setup and teardown, automating login, product browsing, and cart actions across tests, with fixture scope and auto use.
Explore parameterized fixtures and parameter sizing in pytest, using two methods, demonstrate with a and b values, and validate results.
Explore dynamic parameterization of fixtures by using request config options to launch the browser (Chrome or Firefox) based on a provided parameter.
Explore what a test automation framework is, its hybrid structure with page object model, data-driven practices, and how folders like page layer, test layer, and reporting enable reusable, maintainable automation.
Create a test automation framework by structuring folders (config, pages, reports, test cases, utilities, data, screenshots) and modularizing the script to automate login and like actions.
This lecture demonstrates automating the like4like website with a Python script to login, obtain free credits by liking tweets, and manage multi-window logins until the credit goal is reached.
Learn to build a test automation framework by creating fixtures with pytest, configuring selenium web driver setup and teardown, and running class-based tests for a like-for-like website.
Master explicit waits in a test automation framework using Selenium's WebDriverWait and expected conditions to replace hard-coded sleeps with until-based checks, such as element to be clickable.
Build a Python test automation framework with page object model, creating login and other page classes, methods to enter username and password, and a base folder with a superclass.
Learn to build a reusable login component in a Python test automation framework by creating a base driver superclass, encapsulating username, password, and submit actions for multiple pages.
Create a reusable login module by building a base driver class and a login page, enabling inheritance across test cases and handling username, password, and submit actions in Python.
Create two page objects, a home page and an earned credit page, using a shared driver to automate login and navigate between screens, then perform a twitter like.
Master explicit wait in a test automation framework and refactor wait logic into a reusable function. Use locator types and xpath to interact with login elements through the driver.
Develop a modular login automation using separate username, password, and submit elements with locator types and XPath, leveraging a base driver and dedicated functions for login and Twitter interactions.
Learn to build and refine a test automation framework to automate Twitter likes, handle multi-window flows with parent and child handles, and execute actions via a base driver.
Develop and extend a test automation framework to run across Chrome, Firefox, and Edge using WebDriverManager, with pytest fixtures for browser and URL, controlled by command-line options.
Move the driver-connected twitter-like utility from utilities to the pages, and refactor locators and object creation to improve the test automation framework. Prepare for logging in the next lecture.
Learn to build a custom logger for a test automation framework using Python logging, configure a file handler and formatter, and derive class-based logger names with inspect to enable logs.
Learn to implement logging in a test automation framework by integrating a custom logger, configuring log levels, and tracking login flows and like actions in a Chrome browser.
Learn how to implement a data-driven test automation framework for social media actions, including login, logout, and performing like, comment, and follow operations with multiple data sets.
Master data-driven testing (ddt) to run a single test case with multiple username, password, and locator data, including setup with ddt and soft test for Twitter follower interactions.
Explore external data handling for a Python automation framework using JSON, YAML, and Excel files to drive data-driven login tests with multiple user credentials.
Learn how to read test data from Excel in Python automation, including loading workbooks, iterating rows, and extracting username, password, and locator values for data-driven tests.
Learn to read data from a CSV file in a Python test automation framework using the CSV module, building a data list and skipping the header.
generate an html report from your test automation framework, using data from csv, excel, yaml, and json files, and install and configure the report plugin to view pass/fail results.
Introduces Python logging with a calculator example and shows replacing print with logging methods (debug, info, warning, error, critical). Explains default warning level and basic console and file logging concepts.
Learn how to write logs to a file with Python's logging module, configuring basicConfig, file path, and log levels, and organizing outputs in a logs directory.
Format logs by building a structured string that includes the time, level label, and message using Python format specifiers, and customize label names as needed.
Configure a Python logging setup for large projects and test automation by creating a logger, enabling a debug level, and adding console and file handlers with formatters.
Install git on Windows, Mac, or Linux from the official site, configure a preferred editor like Visual Studio Code, and verify the installation while learning about GitHub for hosting code.
Learn to create a project, initialize a local git repository, add files, and make your first commit. Configure your user name and email, and manage the staging area.
Learn to push a local repository to GitHub, switch from master to main, set the remote URL to HTTPS, and push with a personal access token.
Initialize a git repository, stage and commit changes, ignore unwanted files with a .gitignore, and push updates to a GitHub repository using origin main.
Learn how to clone a GitHub repository, add new test cases for a Python automation framework, and push changes back to GitHub for collaborative testing.
Learn end-to-end git workflow for collaborative Python test automation projects, including cloning, pulling latest changes, committing, and pushing updates to GitHub.
Learn how to manage team collaboration with git branches and merging, create feature branches, push to GitHub, and use pull requests to review and merge changes.
Welcome to the 'python automation masterclass' course on Udemy!
Embark on an exciting journey to become a proficient Python automation expert! In this comprehensive course, you'll learn how to leverage Python's versatility and power to automate a wide range of tasks, ultimately streamlining your everyday life with cutting-edge tools and techniques.
The course is thoughtfully divided into sixteen sections, each focusing on essential topics and practical applications:
Section 1: Introductions
Familiarize yourself with the course structure and discover the potential of automation with Python.
Section 2: Getting started with Python basics
Build a solid foundation by exploring fundamental Python programming concepts.
Section 3: Improve Your coding skills with Python exercises
Sharpen your coding skills with hands-on exercises designed to challenge and enhance your understanding of Python programming.
Section 4: Learn CSS selector for test automation framework
Dive into web automation by mastering CSS selectors for efficient interaction with web page elements.
Section 5: Learn XPath for test automation with Selenium
Expand your toolkit with XPath for precise automation of complex web structures.
Section 6: End-to-End project with a complete method in Selenium and WebDriver
Apply your skills to build a full automation project using Selenium and WebDriver.
Section 7: Learn pytest framework of Python, getting ready for the test automation framework
Discover the powerful pytest framework for effective and scalable automated tests.
Section 8: Logging - get prepared for the test automation framework
Learn effective logging practices for diagnosing issues and tracking automation execution.
Section 9: Design and develop a test automation framework
Elevate your skills by designing a modular and scalable test automation framework.
Section 10: Learn Git and Github
Master Git and Github basics for collaboration and version control in automation projects.
Sections 11-16: Automation for WhatsApp, Email, YouTube, Facebook, YouTube views, and Telegram
Explore automation in popular platforms, from WhatsApp to Telegram, optimizing your communication and workflows.
Throughout this course, you'll gain not only a deep understanding of Python automation but also develop problem-solving and analytical skills. Learn industry best practices, write clean and maintainable code, and understand the ethical considerations of automation.
Join us on this exciting journey to unlock the full potential of Python automation and revolutionize your everyday life. Enroll now for a transformational learning experience!