Is It possible to find an element using xpath
that has a dynamic div
?
test = self.driver.find_element_by_xpath('/html/body/main[1]/div[HERE!]/div[1]/div[1]/div[2]/div[5]')
I must find this element that changes the div[HERE!]
deppending of your action on the page
EDIT
Here's the outer HTML. label
is the only unique part of it, and the numeric (91) is dynamic...
<div class="group">
<label>Tipo Benefício</label>
<span><b class="numeric">91</b>AUXILIO DOENCA POR ACIDENTE DE TRABALHO
</span></div>