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

263
Visualizações
Is there a way to select an item inside an unordered list in robot framework?

I am trying to create choose an area code.

The HTML looks like this:

<div class="van-picker-column">
  <ul class="van-picker-column__wrapper">
    <li role="button" tabindex="0" class="van-picker-column__item van-picker-column__item--selected" style="height: 44px;">
      <div class="van-ellipsis">1</div>
    </li>
    <li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
       <div class="van-ellipsis">1242</div>
    </li>
    ...
    <li role="button" tabindex="0" class="van-picker-column__item" style="height: 44px;">
       <div class="van-ellipsis">1264</div>
   </li>
  </ul>
</div>

Items in the ul are area codes and in mobile view, thus, it can only show the first 5 items, then I have to scroll over the list to select my intended value. The UI is shown below.

enter image description here

I tried:

  • set focus to element using the //ul[@class='van-picker-column__wrapper']/li[n] where n is the element's index on the list. It is not working.
  • Mouse Over on the element, I am encountering an error. It says the target is out of bounds.
  • Using Select From List by Label or Value is also not working. I think because it only works on <li value="val">label</li> with values, not <li><div></div><li> format
  • Using Press Keys is also not working. I can't select an area code even if I use keyboard keys in the website under test.

Is there a way to select an item inside an unordered list in the robot framework?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

try this one, I think you will be able to scroll..

Scroll Element Into View <locator> 

and then click with either

Click Element <locator> 

or

Press Keys <locator> //13
about 4 years ago · Juan Pablo Isaza Relatório
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