Page Objects - Advanced Selenium WebDrvier Tutorial [Python] смотреть онлайн
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: https://www.youtube.com/watch?v=Qfn8QXN169M
UiObject: https://www.youtube.com/watch?v=4FQ9govx_5c
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: https://www.youtube.com/watch?v=oWZQb8nRGfk
Dropdowns: https://www.youtube.com/watch?v=BmPtKENfYcY
Checkboxes: https://www.youtube.com/watch?v=hqQ5Y65qZeQ
Radio buttons: https://www.youtube.com/watch?v=X5PUGmDawYc
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: https://www.patreon.com/join/arturspirin
via PayPal: https://goo.gl/jYc1Mu
Also, make sure to checkout Test Junkie and leave a star @ https://github.com/ArturSpirin/test_junkie
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Page Objects - Advanced Selenium WebDrvier Tutorial [Python]» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.