Is Page Object Model a selenium framework?
In this post we are going to see a frequently asked Interview question in Selenium Webdriver which is below:
“Is Page Object Model a Selenium framework??”.
Answer is No.
I have heard many answer that people have used POM Framework. Actually it is not a framework.
POM is a design pattern which says how you can organise your automated test scripts in better ways. In POM, web pages are represented as classes, and the various elements on the page are defined as variables on the class. All possible user interactions can then be implemented as methods on the class.
You can refer my previous posts on Page Object Model.
Hope, now you can answer well in Interview if this question is asked to you.
Author: Amod Mahajan
A software Tester who is paid to judge products developed by others. Writing technical posts and creating YouTube videos are my hobbies.
6 thoughts on “Is Page Object Model a selenium framework?”
Can we handle testNg assert through try catch block ;
What happens in below case??
int a = 12;
int b =20;
Assert throws error not exception. So either ise Error or Throwable super class in catch block.
Yes, its working fine .we can use Error or Throwable .
Btw its Amod.
Thanks Steve for the correction. It is typo.