Page Objects Flashcards

1
Q

What a Page Object represents ?

A

An area in the web application interface with which your test is going to interact. A class, a module or a set of functions that contains the interface to a form, a page or a fragment of the page of the SUT which a test automator wants to control.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

main reasons to use a Page Object:

A
  • It creates reusable code that can be shared by multiple test scripts
  • It reduces cost and maintenance efforts for test automation scripts
  • It encapsulates all operations on the SUT’s GUI in one layer
  • It gives a clear separation between the business and the technical parts for the test automation design
  • it gives a single point to repair all relevant scripts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Another name for Page Object:

A

Page Object Pattern

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What it is the function of the Test Abstraction Layer?

A

It takes care of interfacing between the logic of the test case and the physical needs of driving the SUT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which is one of the main uses of a Page Object?

A

Abstract (hide details) the GUI of the SUT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which is one of the achievements of the complexity hiding in automation through the use of page objects?

A

To making it easier for the scripters to quickly create valid and powerful scripts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A Page Object exports business operations that

A

are used as test steps in Test Execution Layer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What type of testing the Page Object Pattern does implement?

A

Page Object Pattern

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What layers we should observe when we are dividing a TAA into layers and designing Page Objects?

A
  • Page Objects should not contain business assertions nor verification points.
  • All assertions and technical verifications regarding the GUI (e.g., checking if a page has finished loading) should be done only within Page Objects.
  • All waits should be encapsulated in Page Objects.
  • Only the Page Object should contain calls to Selenium functions.
  • A Page Object does not need to cover the whole page or form. It may control a section or other specific part of it.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which is the role of a Page Object in a Test Abstraction Layer ?

A

To encapsulate calls to Selenium WebDriver methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which is the role of a Page Object in a Test Execution Layer ?

A

To deal only with the business tier.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly