Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
Cannot get value of selection class (arselmenu)

I'm a Python newbie. I'm trying to make a py script to select a value from dropdown list. I tried to find a guideline on Youtube. But they only instruct how to get data from "option value=...". My trouble is there is no "option value=..." on the selection class that I'm try to get. Methods I tried and didn't work:

selectionbox.select_by_visible_text('Resolved')

find_element_by_xpath("....").click()

Their value are in arselmenu like below: (New/Assigned/In Progress/etc.)

<div class="selection" style="top:0px; left:117px; width:174px; height:21px;" arselmenu="[{v:&quot;New&quot;},{v:&quot;Assigned&quot;},{v:&quot;In Progress&quot;},{v:&quot;Pending&quot;},{v:&quot;Resolved&quot;},{v:&quot;Closed&quot;},{v:&quot;Cancelled&quot;}]">
<input id="arid_WIN_3_7" type="text" class="text " readonly="" style="top:0px; left:0px; width:153px; height:21px;" title="Pending">
<a href="javascript:" class="btn btn3d selectionbtn" style="top:0px; left:153px; width:21px; height:21px;">
<img class="btnimg" src="../../../../resources/images/mt_sprites.gif" alt="">
</a>
</div>

Highly appreciate any advice. Best wishes.


*** Update: Hi @Endothermic, I tried using Javascript as your suggestion and got the code below:

Status_javaScript = "document.getElementById('arid_WIN_3_7').value='Resolved'"  #Status - Resolved

driver.execute_script(Status_javaScript)

But it does not take effect when I click Save. I mean it does not change the value from "Pending" to "Resolved". It display like I changed the value but it's not. Any suggestion? Thank you.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda