Czesc, czy wiecie moze czy mozna napisac sciezke xpath w taki sposob, zeby kompilator myslal, ze odnosze sie do elementu div, a nie jakiegos innego? znalazlem taki przyklad w necie:
//div[@class='errorblock'] -> //div[../strong[contains(text(),'The following errors were found:')]]
Moja sciezka wyglada tak: //flight-list[@id="outbound"]//div[@class="flight-list-wrapper"]/div/flights-table/div[@class="flights-table"]//div[@class="meta-row time"]/span[text()='06:50']/../../../../../flights-table-header
i chce, zeby element 'flights-atable-header' zostalo zinterpretowane jako div
efekt moich nieudanych prob: //flight-list[@id="outbound"]//div[@class="flight-list-wrapper"]/div/flights-table/div[@class="flights-table"]//div[@class="meta-row time"]/span[text()='06:50']/../../../../../..//div[../flights-table-header]
a tak generalnie to chce wyciagnac wartosc id. Nic nie dzialalo, a na stack overflow przeczytalem wlasnie, ze wartosc id pozna chwycic tylko dla elementow typu div