Forum Discussion

ChrisGCFI's avatar
ChrisGCFI
New Contributor
2 years ago

can picking a value from list box be automated in keyword test

Hi,

new to ui autonomation. I am trying to run a test where the page loads and I pick a value from a list box. There are several values in the list box and each returns a different dataset which is populating a datagrid.

 

My tests will not run because the selection from the list box, never happens.

 

If I manually pick the value, the test will run and pass

3 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Are you able to use the Object Spy on the list box and see at least one of the values in the given details.

     

    Have you tried recording the test and walking through the steps you want and then rerunning that test? What happens when you try that?

  • ChrisGCFI's avatar
    ChrisGCFI
    New Contributor

    Hi,

    yes I used the obj spy. It finds the listbox, I am not sure how to program what to pick. 

    When the test runs, the values in the list box drop down, but the test never picks a value, and the test errors out

     

    • Marsha_R's avatar
      Marsha_R
      Champion Level 3

      Try recording a test that picks from the list box and then replay that. Does that work?