Remove now unused injectedScript command

This commit is contained in:
Adam Gastineau 2025-01-23 12:34:53 -08:00
parent a7559f7b8c
commit c4332247cb

View file

@ -1404,8 +1404,6 @@ export class InjectedScript {
received = getAriaRole(element) || '';
} else if (expression === 'to.have.title') {
received = this.document.title;
} else if (expression === 'to.have.url') {
received = this.document.location.href;
} else if (expression === 'to.have.value') {
element = this.retarget(element, 'follow-label')!;
if (element.nodeName !== 'INPUT' && element.nodeName !== 'TEXTAREA' && element.nodeName !== 'SELECT')