Support adding custom selectors

Created on 5 August 2024, 5 months ago
Updated 24 August 2024, 4 months ago

Problem/Motivation

We're using enums that implement an interface to register component selectors.
We would like to be able to use a custom selector that is aware of these to avoid boilerplate.

We extend WebAssert and add componentExists, componentWithTextExists and their negative counterparts.

These internally call elementExists('component', ...) i.e. a custom selector that knows how to translate the Enums into xpath.

However we can't easily add a new selector without copying all of setupMinkSession which we'd rather avoid

Additional mink has deprecated Session::getSelectionHandler so we need to do this at setup time.

Steps to reproduce

Proposed resolution

Add a new extension point (method) for setting up the selection handler.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024