message: one-liner fix
diff: @@ -384,7 +384,6 @@ LocatorBuilders.add('xpath:img', function (this: LocatorBuilders, _e) {
  LocatorBuilders.add('xpath:attributes', function (this: LocatorBuilders, e) {
  const PREFERRED_ATTRIBUTES = [
  'id',
  - 'textContent', // it is not properly an "attribute"
  'name',
  'value',
  'type',
  @@ -404,22 +403,22 @@ LocatorBuilders.add('xpath:attributes', function (this: LocatorBuilders, e) {
  locator += ' and '
  }
  let attName = attNames[i]
  - locator += (attName == 'textContent' ? 'text()' : '@' + attName) + '=' + this.attributeValue(attributes[attName])
  + locator += '@' + attName + '=' + this.attributeValue(attributes[attName])
  + if (e.textContent && attName == 'type') {
  + locator += ' and text()=' + this.attributeValue(e.textContent)
  + }
  }
  locator += ']'
  return this.preciseXPath(locator, e)
  }
  - if (e.attributes || e.textContent) {
  + if (e.attributes) {
  let atts = e.attributes
  let attsMap: Record<string, string> = {}
  for (i = 0; i < atts.length; i++) {
  let att = atts[i]
  attsMap[att.name] = att.value
  }
  - if (e.textContent) {
  - attsMap['textContent'] = e.textContent
  - }
  let names = []
  // try preferred attributes
  for (i = 0; i < PREFERRED_ATTRIBUTES.length; i++) {
  