Can anyone state some of the advantages of Page Object Model framework?

0 votes
Can anyone state some of the advantages of Page Object Model framework?
Jun 4 in Selenium by Naomi
42 views

1 answer to this question.

0 votes

Hey Naomi, POM (Page Object Model) framework has following advantages:

  • Object Repository – Each page will be defined as a java class. All the fields in the page will be defined in an interface as members. The class will then implement the interface.

  • Code maintainability – There is a clean separation between test code and page specific code such as locators and layout which becomes very easy to maintain code. Code changes only on Page Object Classes when a UI change occurs. It enhances test maintenance and reduces code duplication.

  • Readability – Improves readability due to clean separation between test code and page specific code.

  • Code reusability – We could achieve code reusability by writing the code once and use it in different tests.

answered Jun 4 by Rakshit

Related Questions In Selenium

0 votes
1 answer

What are the advantages of TestNG over JUnit framework?

Hey Kimberly, TestNG has many advantages over ...READ MORE

answered Jun 11 in Selenium by Abha
• 16,380 points
25 views
0 votes
1 answer

What are the advantages of using Data-driven Test framework?

Hey Huma, some of the advantages of ...READ MORE

answered 2 days ago in Selenium by Abha
• 16,380 points
5 views
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
258 views
0 votes
2 answers

Selenium: Diff between POM (page object model) and page factory?

Hi, In POM (Page Object Model) you create ...READ MORE

answered Mar 14 in Selenium by Ellen Dares
2,200 views
0 votes
1 answer
+1 vote
1 answer

Can someone explain the meaning of WebDriver wd = new ChromeDriver();?

WebDriver webdriver = new ChromeDriver(); The following simply ...READ MORE

answered Dec 14, 2018 in Selenium by Aniket
68 views
+1 vote
1 answer