Button Bindings

Clicking a Button by Text

 * This is used when wanting to click on a Button by the given text*.

'When I click the '{ButtonName}' button'


 * e.g. When I click the 'Create New Job' button



Clicking a Button by Position and Text

 * This is used to click on a button by the given text where multiple buttons with the same text exist.*

'When I click the {PositionInText} '{ButtonName}' button'


 * e.g. When I click the First 'Add Additional Product' button



Clicking a Button by Icon

 * This is used when needing to click on a button that only has the icon.

'When I click the '{IconName}' icon'


 * e.g. When I click the 'Search' icon



Asserting a Button is Accessible

 * This is when you want to check that the button is accessible

'Then The '{ButtonName}' button should be accessible'


 * e.g. Then The 'Create New Job' button should be accessible

Asserting an Icon is Accessible

 * Use this when asserting that an Icon should be accessible

'Then The '{IconName}' icon should be accessible'


 * e.g. Then The 'Back' icon should be accessible

 * Please note, all text is case sensitive