Forum Discussion

rresmi's avatar
rresmi
Occasional Contributor
9 years ago

Hi, I want to select an item from a dropdown based on a property of the list items. Please help

Hi, I want to select an item from a dropdown based on a property of the list items.

I have attached a screenshot

Please help if you have any idea how to do it.

Thanks in advance

 Resmi

4 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    Hi,

     

    What property you want to use?

     

    If you have the list item name then, you can use ClickItem(inputVal) to select that particular value from Dropdown list.

     

     

     

    • rresmi's avatar
      rresmi
      Occasional Contributor

      Not the item value. If you have seen the screenshot I have attached, the dropdown has a node ID , Name and IP address displayed together as the value.

      I want to select the item based on IP address only. I will passing the IP as a parameter and the correct item should be selected

      • rresmi's avatar
        rresmi
        Occasional Contributor

        Currently I am selecting each item in the list, one by one, check if it's IP address property is same as the parameter value, if not continue to next value, like that... But it takes more time, if the desired value happens to be in the bottom of the dropdown list