Why Constructor in Page Object Model ? | QA Automation Talk

  Рет қаралды 2,324

QA Automation Talk

QA Automation Talk

Күн бұрын

A constructor has to be created in each of the class in the Page Layer (POM), in order to get the driver instance from the Main class in Test Layer and also to initialize WebElements (Page Objects) declared in the page class using PageFactory.

Пікірлер: 12
@klshyam2628
@klshyam2628 29 күн бұрын
nice explaination sir
@qaautomationtalk
@qaautomationtalk 27 күн бұрын
Thank you bhai, Keep Learning
@kartiksingh7231
@kartiksingh7231 Жыл бұрын
Great content 🔥
@souravrana410
@souravrana410 Жыл бұрын
Explained very well 👌
@ramanrana9166
@ramanrana9166 Жыл бұрын
👌👌👌
@aditya_kittu22
@aditya_kittu22 9 ай бұрын
I think constructor is used to intialize non static variables in page object class, is it correct?
@qaautomationtalk
@qaautomationtalk 9 ай бұрын
Main reason to use constructor in POM to initialize webelements declared using PageFactory.
@aditya_kittu22
@aditya_kittu22 9 ай бұрын
@@qaautomationtalk ok thanks for correcting me
@gopalkrishnan6230
@gopalkrishnan6230 Жыл бұрын
this i didnt used but still driver get intiallized
@qaautomationtalk
@qaautomationtalk Жыл бұрын
This video is about basic POM framework, which requires constructor.
@traveller3516
@traveller3516 15 күн бұрын
Voice is tooo low
@qaautomationtalk
@qaautomationtalk 13 күн бұрын
Improved in new videos, Thank you for feedback.
Factory Method Pattern - Design Patterns (ep 4)
27:21
Christopher Okhravi
Рет қаралды 527 М.
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Рет қаралды 7 МЛН
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 5 МЛН
ТОМАТНЫЙ ДОЖДЬ #shorts
00:28
Паша Осадчий
Рет қаралды 12 МЛН
PageFactory.initElements(driver, this) ??  | QA Automation Talk
5:57
QA Automation Talk
Рет қаралды 2,1 М.
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 90 М.
Java Constructors - Full Tutorial
7:38
Coding with John
Рет қаралды 321 М.
Monolithic vs Microservice Architecture: Which To Use and When?
10:43