Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!