Ask a Question

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

ChrisGCFI
New Contributor

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 3
Marsha_R
Community Hero

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?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
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

ChrisGCFI_0-1675369923725.png

 

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


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: