I am trying to add a conditional logic for karate UI feature that I am trying to build. The requirement is this: There are 5 fields;
- select(‘select[id=currency]’, ‘EUR’) // has a random logic to select between USA and EUR in the drop down
- Select(‘select[id=bankcountry]’, ‘{^}France’) // this can be either France or USA
- Input(‘input[id=iban]’, ‘Fr1234567’) // input field appears when the bank country is France
- Input(‘input[id=accnumber]’, ‘1234567’)// the account number and routing number fields are visible only if the bank country is selected as USA
- Input(‘#routingnumber’, ‘6765757’)
My requirement is; I want to use if then else such that if the currency is EUR then the bank country should get selected as France and input Iban else if the currency is USD then bank country should get selected as USA and input values account number and routing number. I am at a loss on how to achieve this. Could someone please help?