Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Page Objects - Advanced Selenium WebDrvier Tutorial [Python]

Автор: Artur Spirin

Загружено: 2019-04-21

Просмотров: 12216

Описание:

There are two things that are of the most importance when it comes to automation & Page Object design:
1. Understanding the layers and abstractions in framework design
2. Understanding of how to model page objects

This video will teach you how to use Python to abstract and separate layers for highly scale-able framework design. You need to know this before you can begin building page objects because when building Page Objects, you should always be referencing your own code. Almost never should you be referencing 3rd party libraries from your Page Objects (Yes, that exactly what I'm saying, you should not even be importing Selenium Webdriver in your Page Objects), and in your tests you should only be referencing your Page Objects.

Level 1 abstractions are covered in more detail in those two videos and those are the only two classes that should directly import and use Selenium Webdriver library:
Browser:    • Advanced Webdriver - Wrapper for Browser O...  
UiObject:    • Advanced Webdriver - Wrapper for UI Objects  

Next you need to understand that when you build Page Objects, you build an API for you and your team to utilize anytime they/you want to do something on a given page. So build it to be intuitive and usable for any use case possible on that page and not just for the most common use case that you envision on the page at that time.

How do you do that? You create small dumb functions for everything that your page supports (any small user action) and anytime you model a page, break it up into smallest components.

Is there a drop-down on a page? Model the drop-down to be its own class so it can be instantiated with parameters and used on any of your pages.
That drop-down component may support generic methods such as:
get_available_selections()
get_current_selection()
open()
select(value)
close()
is_enabled()
and so on...

The same can be done for any other component and I have even created multiple videos that show how to do it for the following page components:
Tables:    • Selenium Webdriver - Tables  
Dropdowns:    • Advanced Webdriver - Dropdowns  
Checkboxes:    • Advanced Webdriver - Checkboxes  
Radio buttons:    • Advanced Webdriver - Radio Buttons  

The more components you have, the higher development velocity you will achieve. It will get to the point where a new page can be modeled within minutes.

If you like what I teach, make sure to support me:
via Patreon:   / arturspirin  
via PayPal: https://goo.gl/jYc1Mu

Also, make sure to checkout Test Junkie and leave a star @ https://github.com/ArturSpirin/test_j...

Page Objects - Advanced Selenium WebDrvier Tutorial [Python]

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Advanced WebDriver XPATH Tutorial

Advanced WebDriver XPATH Tutorial

Selenium Test Automation: Practical Tips & Tricks - with Dave Haeffner (Part 1)

Selenium Test Automation: Practical Tips & Tricks - with Dave Haeffner (Part 1)

Python WebDriver By Selectors

Python WebDriver By Selectors

Почему ваш код не соответствует Python (и как это исправить)

Почему ваш код не соответствует Python (и как это исправить)

Липсиц про рекордный рост цен, падение цен на нефть и будущее криптовалют🎙️ Честное слово с Липсицем

Липсиц про рекордный рост цен, падение цен на нефть и будущее криптовалют🎙️ Честное слово с Липсицем

Как удалить следы SUNO.AI (МАСТЕР SUNO)

Как удалить следы SUNO.AI (МАСТЕР SUNO)

Музыка для работы - Deep Focus Mix для программирования, кодирования

Музыка для работы - Deep Focus Mix для программирования, кодирования

Python Tutorial: Unit Testing Your Code with the unittest Module

Python Tutorial: Unit Testing Your Code with the unittest Module

Page Object Model - Python Selenium with PyTest - Part 1

Page Object Model - Python Selenium with PyTest - Part 1

Typst: Если бы Word и LaTeX придумали программисты

Typst: Если бы Word и LaTeX придумали программисты

Почему Трамп в последний момент отменил удар по Ирану

Почему Трамп в последний момент отменил удар по Ирану

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Умрет Кадыров – умрет и Путин. Трамп спасет Иран. Долина сбежала навсегда. БЫКОВ

Умрет Кадыров – умрет и Путин. Трамп спасет Иран. Долина сбежала навсегда. БЫКОВ

Selenium Python Small Sample Project | Page Object Model POM

Selenium Python Small Sample Project | Page Object Model POM

Al Sweigart,

Al Sweigart, "Automating Your Browser and Desktop Apps", PyBay2016

Как создать собственный VPN сервер Vless XHTTP с графической панелью 3x-ui и доменом.

Как создать собственный VPN сервер Vless XHTTP с графической панелью 3x-ui и доменом.

Chrome Dev Tools - Advanced Selenium Webdriver

Chrome Dev Tools - Advanced Selenium Webdriver

Cudy TR3000 + LTE USB модем — прошивка OpenWRT, Podkop и VLESS xHTTP | 2026

Cudy TR3000 + LTE USB модем — прошивка OpenWRT, Podkop и VLESS xHTTP | 2026

Операции CRUD веб-API ASP.NET — учебное пособие по .NET8 и Entity Framework Core

Операции CRUD веб-API ASP.NET — учебное пособие по .NET8 и Entity Framework Core

Как стать гением в XPath в Selenium — Сессия 18

Как стать гением в XPath в Selenium — Сессия 18

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com