2

I am trying to make my tests more cleaner/parameterized by moving the enums, constants & locators to other files. Is there a way to do this while using protractor/java script. If yes, What is the best way to do this?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
kvm006
  • 4,554
  • 2
  • 18
  • 22

1 Answers1

1

Sure, follow the Page Object pattern/model.

As for protractor specifically, study the "Page Objects" chapter of the Style Guide.

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195