0

i have below html structure, how can i use python senlenium to locate pseudo element 'before',

 <div tabindex="0" data-elemkey="month" data-elemtype="ListBox" data-type="elem" class=" " style="position:      absolute; ">
 <div style="position: absolute; left: 0px; top: 0px; height: 34px; width: 145px; z-index: 10000;">
 <div class="gcell-div font-1669190550589" >
 <div class="gcell-div-content  v-align-center h-align-left" >
 <span class="" style="pointer-events: none; max-height: 100%; max-width: 100%; ">
 <i class="common-collapse-down">
 ::before

i have tried by :

driver.find_element(by=By.CSS_SELECTOR,value='span.listUI-arrow>i')

but because there're many same other 'span.listUI-arrow' elements, so i would like to relation with parent :data-elemkey="month ; how can i get it, thanks

jxccc
  • 1

0 Answers0