Hello I need to click on a href
link but it doesn't have any class, id, text or anything at all.
<div>
<a href="/ad/repost/id/2109701">
<span>Réafficher</span>
<i class="fa fa-refresh">
</i>
</a>
I've tried the following and multiple other things.
Link = driver.find_element((By.XPATH, '//*[@id="body"]/div[4]/div[3]/div[1]/div[3]/div[1]/a/span'))
But it throws an error.
I also have the same issue with an input button :
<div class="modal-pm-left">
<input type="button" class="btn-orange modal-close" value="Fermer">
</div>
help >_<