🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Page Object Model: all 10 questions

Quiz: Page Object Model · Question 2 of 10

Where should assertions live in a POM framework?

Where should assertions live in a POM framework?

  1. A.In page classes
  2. B.In test classes
  3. C.In the driver factory
  4. D.In testng.xml
Answer & explanation

Correct answer: In test classes

Pages act and read values; tests decide what's correct.

Can you get the rest right without peeking?

Take the timed Quiz: Page Object Model quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →