I have an empty field where I can type some short text, let’s say it’s a company name. When I type this name a drop-down list appears. Depending on the typed text there may be three cases:
- The drop-down list consists of one record which is the company name.
- The drop-down list consists of more than two identical records (literally you get several options which have absolutely the same name).
- The drop-down list is empty (let’s treat it as if the company is not in the database).
I need to learn to distinguish all these three cases and make further actions depending on which case it is.
Any ideas on how to do it? I thought of playing with the Type Into activity and keys like “down” or “up” to get the number of records in the drop-down list. But I genuinely think it’s a bad idea because the list is always dynamic, it’s also unclear how to let the robot understand when to stop pressing those buttons and so on and so forth.
I would be grateful to read your ideas if any exist.