Skip to content

← All questions

The healer proposed a CSS locator when there is a perfectly good label — reject it?

Asked 8,120 views3 answers

Scenario broke, ran the healer, got a proposal. The patch swaps a page-object locator for a class chain:

ts
this.heal.locator('.f-row--2 .f-ctl input', { description: 'promo code' })

The input has a visible label reading "Promo code". So there is an obviously better locator and it picked the worst one on the list. Do I reject and re-run, or fix it in place and accept?

asked by Anouk de Vries238 ·

3 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related