jeudi 1 avril 2021

Why this xpath is not found

when i open with inspect element i see code like this:

<div spellcheck="false" unselectable="off" class="appmagic-label-text" data-control-part="text" data-bind="{
            inlineEditText: properties.Text,
            css: {
              'appmagic-label-single-line': !properties.Wrap()
            },
            attr: {
              'aria-live': live,
              'aria-atomic': live() ? 'true' : null
            }
          }">Atostogų prašymai</div>

and i'm trying to get this text "atostogų prašymai" xpath and there is no way I can find it.

options i have tryied:

  1. By.cssSelector("div[class='appmagic-label-text']");
  2. Just copied xpath By.cssSelector("div[class='//*[@id=\"publishedCanvas\"]/div/div[2]/div/div/div[5]/div/div/div/div/div']");

Aucun commentaire:

Enregistrer un commentaire