lundi 26 novembre 2018

Design concerns about Page Object Model Pattern

I wonder if something is wrong with our approach to the POM. In many examples on the internet I find this pattern used in a way so that your test script looks like this:

pageObject.doSomethingWithElement(parameters...)

For us it was more natural to do it like this:

pageObject.element.doSomething(parameters...)

So we don't need to implement what can be done with an element in the page class but just simply define those actions in the test script. For some reason that felt more natural for us similar to the fact that there is

System.out.println()
System.err.println()

instead of

System.printlnOut()
System.printlnErr()

Do we miss some disadvantage of our approach?

Aucun commentaire:

Enregistrer un commentaire