Web UI Testing with Python
Channel: Code Geek
Date: 06/12/2021

Learn how to write robust, scalable Web UI tests using Python, Pytest, and Selenium WebDriver that cover the full stack for any Web app
Python Programming Tutorial - Full Course for Beginners
☞ https://morioh.com/p/c8ebeaa911f9
Building an Analytics Dashboard with Django
☞ https://morioh.com/p/88d6fc714f52
Python Cheatsheet for Beginners (PDF File)
☞ https://morioh.com/p/b57f91f033dc

Unit tests are great, but they don’t catch all bugs because they don’t test features like a user. However, Web UI tests are complicated and notoriously unreliable. So, how can we write tests well? Never fear! Let’s learn how to write robust, scalable Web UI tests using Python, pytest, and Selenium WebDriver that cover the full stack for any Web app. In this talk, we will write one simple test together that covers DuckDuckGo searching. You’ll learn how to write battle-hardened Web UI tests for any Web app, including Django and Flask apps. I’ll also provide plenty of hands-on tutorials and resources to continue learning after this talk.

Description

Web UI testing is difficult because many folks don't know how to do it, or they aren't experienced in how to handle fine details like locators or race conditions. In this talk, you will learn how to automate tests in Python using pytest and Selenium WebDriver. We will cover:

Using Selenium WebDriver like a pro
Modeling Web UI interactions with page objects
Writing “good” feature tests that are efficient, robust, and readable
Deciding what should and should not be tested with automation
Considering Playwright as a Selenium alternative
The example code is here:
https://github.com/AndyLPK247/tau-intro-selenium-py

#Python #WebDev #Morioh

PUBLICATION PERMISSIONS:
Original video was published with the Creative Commons Attribution license (reuse allowed).
Link: https://www.youtube.com/watch?v=omNT_FtHdr4&t=0s
------------------------------------------------------------------------------------ 
Social Network for Developers: http://bit.ly/2R1Lw31
Developer's Store: http://bit.ly/2L27JNR 
Fanpage: http://bit.ly/2LyM4fJ
Twitter: http://bit.ly/2J7vCS0