Hi Praveen,
Robot framework has generic keywords, but if you need to do a more complex task repetitively on different fields you can easily build a keyword for your task up from the basic keywords.
For example for your drop down with a disappearing element:
you could use
- Click Element to open the drop down
- Select From List By Index / Label / Value to select a value (drop down should auto close)
- Click Element to re-open the drop down
- Element Should Not Be Visible to confirm the element has disappeared
For example for your autosuggestions:
- Input Text into the field that gives the auto suggestions
- Element Should Be Visible to verify the suggestions you expected to get appear
- Get Text to get the values of the suggestions
There are many possible variations, you’ll need to read the documentation for the SeleniumLibrary keywords and see what they can do for you.
Also use dev tools to see what type of HTML elements the developer used to create the drop down and auto suggestions. as the standard Select/Option list doesn’t have a disappearing item functionality and likewise there is no standard auto suggestion element in HTML. There are many javascript libraries that create these functionalities but they all use different HTML elements to do it, so you’ll need to work out what has been done specific to your application.
Dave.