Python Selenium: Fundamentals to Frameworks (with SeleniumBase) - Michael Mintz, iboss

preview_player
Показать описание
Python Selenium: Fundamentals to Frameworks (with SeleniumBase) - Michael Mintz, iboss

Do you love Python? The WebDriver Ecosystem has you covered! With millions of downloads from the Python Package Index, (and growing), the Selenium Python bindings are a popular option for automation engineers worldwide.

This deep-dive session will kick-off with a demonstration of Python Selenium fundamentals. From there, we'll transition into improving on the fundamentals by using a test framework, SeleniumBase, which builds on top of pytest and other popular Python unit-testing frameworks.

Why use a test framework with Selenium? Selenium was designed to be a browser automation library... not a test framework, which can add useful features and improve on existing functionality.

Disadvantages of using raw Selenium without additional libraries or frameworks:

The default timeout is 0: If an element isn't immediately ready to be interacted with, you'll get errors when trying to interact with those elements.
No HTML reports, dashboards, results, automatic screenshots, etc.
No driver management: Eg. If chromedriver isn't on your system path when calling driver.Chrome(), you'll get errors. (This may change soon!)
No command-line options for changing default Selenium behavior or adding more functionality.
No advanced tools included, such as recorders, test-runners, etc.

A test framework can improve on that list!

Sometimes people choose to build their own frameworks: If that's you, you'll learn about how to do that more easily. Sometimes people choose to use an existing framework: If that's you, you'll learn about an existing one, (SeleniumBase), which may have all the features you're looking for.
Outline/Structure

Things that will get covered:

Python Selenium fundamentals.
Generic ways for test frameworks to improve on the fundamentals.
Using SeleniumBase as a framework to make Python Selenium testing easier.

Learning Outcome

You'll jump from learning the basics to mastering advancing Python automation techniques in under an hour.
Target Audience
Python enthusiasts
Prerequisites for Attendees

Basic knowledge of Python
Links

Рекомендации по теме
Комментарии
Автор

A phenomenal session, an awesome presentation, and fantastic demos! Kudos to Michael Mintz. Thank You! MM

TechChefMM
Автор

Was waiting for this, thanks a ton for uploading :D

romekcodes
Автор

I found this to be very interesting and instructional and easy to follow, Thanks for sharing !!

sheldonwolff-lmys
Автор

This is so awesome! Thank you so much for sharing! I always use your framework! 🎉

rachelw
Автор

I cant Believe I missed this conference!!! I live inthe Chicago greater area and would`ve loved to go

alexandrutosa
Автор

Does this work with Jupyter Notebooks?

saarembhatti
Автор

@MichaelMintz
1. Can you tell me how i can pass the custom parameter through the command line
i am facing issues
2. And how can i trigger the browser only at class level ?

ayyajjamadar
Автор

This looks pretty amazing to me but when I just tried to install it into my venv, it says it is using cached versions of all files but the sbase command is not recognized in my terminal. Also when I tried installing it on a second computer, noron block installation due to _distutils_hack which seems to be a problem on norton's side rather than a real security problem.

seatownrocks
Автор

unittest for ui testing with selenium, really???

pythonsamurai