porscheinformatik / selenium-components

A small framework on top of Selenium to access web elements more easily.
MIT License
5 stars 5 forks source link

Add method to reflect disabled state in ClarityInputContainerComponent #9

Closed kareemjeiroudi closed 1 year ago

kareemjeiroudi commented 1 year ago

Background

When setting a new value in the input control using this component, you receive an RuntimeException that you cannot anticipate as a user.

PR Includes

In this PR we add a new method to the implementation of this component that can be used by users to test the state of the input control, and whether or not it's disabled

Suggestion

Should call this method before writing a new value to the input control? Cauz otherwise, the exception still occurs.