Details: SeleniumHelper
I had the following ideas in my mind:
- Declare test steps in external text file thus avoiding keeping then in the python code.
- Local and global resources. A lot of tests keep very similar login like: logging, run test. Logging sequence can be common for all test cases, only logic for one test case can be local.
- Aliases. Avoid using long xpath selectors. Just keep them as alias definition and use alias name instead of.
- Keep it simple as much as possible. Give up idea of covering all selenium under some abstraction layer.
Brak komentarzy:
Prześlij komentarz