Hello reishinmarak,
Did you manage to overcome your issue?
If not then try these 2 options:
Option #1: Get the text of the first Dropdown row appeared string and using the InStr VBScript method check if the captured string from the Dropdown appears as part of the whole expected Product’s string
Option #2: After the list appears I noticed the required string gets highlighted – If you click on the highlighted row in the dropdown if it gets populated in the Textbox at the top then you can do as follow in ZAPTEST:
1. Add a click to the highlighted row in the Dropdown, so it will appear in the Textbox – If a simple “ENTER” click will be enough use:
Zap.Keyboard.KeyPress Zap.Keys.Enter
2. After the selected row will appear in the Textbox, execute the “GetText” on the Textbox and using a condition statement verify the found string matches the expected one.
Hope this helps.
Thanks,
ZAPTEST Team