cancel
Showing results for 
Search instead for 
Did you mean: 

Choice stage is not working, redirects to otherwise even though input is valid.

JunaidKhan
Level 3
My choice stage is not working, I am doing the Modern Browser Automation excercise and am on page 15 of the last module,  Interacting with HTML Elements. 

My data item, Search Type, contains valid text which has a value of "QUOTE REFERENCE", and my choice stage contains an expression which converts the text to Uppercase and Trims it, and matches it to the value of "QUOTE REFERENCE". 

It always redirects to the otherwise stage and does not work through as expected.

------------------------------
Junaid Khan
------------------------------
2 REPLIES 2

JunaidKhan
Level 3
Hello, 
The issue was resolved by removing the quotation marks from the text type data items, and then running the choice stage again. It was able to match the data item to the choice stage criteria.

------------------------------
Junaid Khan
------------------------------

In this type of scenario, it is always recommended to check expression using these 2 buttons in the expression editor.

15194.png

------------------------------
Thanks & Regards,
Tejaskumar Darji
Sr. RPA Consultant-Automation Developer
------------------------------