Hello Folks, I have an issue with my select option, my problem is if the select option is not available on the web then it should be moved to another activity.
This is my web select option…
How about to check if there is target option in the Select in advance using GetFullText activity?
GetFullText activity will return all items in the Select as String type.
Before selecting the Server value, Please extract all the values under drop down. Then use filter activity to find whether the targeted server value is there or not.
If the filter row count is 0 then write the excel as Server is not available.
Use 2 click options one after one.
1st click to click the dropdown menu.
2nd click to click respective option. (Please find out this selector with index option. It can be increment and click desired option. Same selector also can be used to detect option name by using getText activity. Once you find desired open by this GetText activity then you can use click by using the same selector.)
You can use Element Exist with the target selector as the Option element of the dropdown with dynamic aaname or innertext
One more way is to use Find Children to fetch all the available options and to check if the required option is present.
But I don’t see this method is efficient to do in this scenario as the above method involves a single step approach without any additional manipulation as the second method.