Czytanie tekstu za pomocą seldum webdriver (xpath)

Używam selenu, aby pobrać tekst na mojej stronie internetowej za pomocą xpath.

Struktura tagów strony jest następująca -

<span id="data" class="firefinder-match">
    Seat Height, Laden
  <sup>
     <a class="speckeyfootnote" rel="p7" href="#">7</a>
  </sup>
</span>

Jeśli użyję następującego kodu -

driver.findElement(By.xpath("//span[@id='data']")).getText();

Otrzymuję wynik =Seat Height, Laden 7

Ale chcę uniknąć czytania tekstu w<sup> tagi i uzyskaj wynikSeat Height, Laden

Daj mi znać, które wyrażenie xpath mogę użyć, aby uzyskać pożądany rezultat.

questionAnswers(1)

yourAnswerToTheQuestion