Forum Discussion

harmatii's avatar
harmatii
Occasional Contributor
4 years ago
Solved

Having issues with implementing Page Object Model in TestComplete using Python language

Using TestComplete with Python to automate Desktop project and trying to implement Page Object Model. Have 2 files:   #first file which contains test Test001:   import ExcelObjects   def Test0...
  • tristaanogre's avatar
    tristaanogre
    4 years ago

    You CAN do a POM, but the code is going to probably be more complicated than you want.  NameMapping is what is basically the replacement for POM in Silenium.  All your main actions (click, keys, etc) are on the Alias objects themselves so you don't need, really, to create classes for each of the different objects.  You just need to use NameMapping or one of those other methods that I suggested for building your objects.