I need to design a RPA solution where I need to get downloaded file name and select a text in option box based on file name. For example, if downloaded file name has text "Clock" then I need to select a drop down with value "Clock Notice". There are almost 20 combinations like this. What would be best approach to accomplish this? Some example below;
Clock - Clock Notice
Outbound - Call Outbound
Exemption - Exempt File
Is it possible to use lookup table or load a csv with this data? Please suggest.
1. Declare string variable (for ex: cmbValue) and after file down load in switch statement based on file name (Clock) assign dropdown actual value (Clock Notice) to string variable (cmbValue). Now pass cmbValue value to dropdown selected text property. It is bit ugly to see.
2. Write c# code to map the value based on file name and call this method in automation, simpler and easy for maintenance and readability.