nhsuk / ui-test-core

Python package which helps with writing UI tests by providing a wrapper around Selenium and other useful functions
MIT License
12 stars 6 forks source link

:sparkles: Completed feature #16 #27

Closed Phil-87 closed 4 years ago

Phil-87 commented 4 years ago

Description

Added logging to elements function in Finder to give information about the selector being used and the number of elements found. To try this out you just need to enable logging e.g. in config file: "logging_flag": true

This will give output such as: INFO:automation-ui:Looking for elements matching PageElement id='my_id' INFO:automation-ui:Found 1 element(s)

This is logged out whenever an element needs to be checked or interacted with because all the relevant functions use elements(). This can be installed from TestPyPI: https://test.pypi.org/project/uitestcore/ pip install -i https://test.pypi.org/simple/ uitestcore

Related Issue

16