Forum Discussion
Already did the same but it's always execute the else statement regardless it's true and false.
Any response to this?
To check to see if "False Match" radio button is selected, what property value have you chosen to indicate that the radio button is selected?
- MMZ23 days agoOccasional Contributor
If...else is working fine now with try catch. Further, I made change in playback having value continue with error.
- rraghvani23 days ago
Champion Level 3
Try...Catch operation is used for exception handling. I'm assuming what you have implemented is not correct, as you haven't mentioned what property value you are using to verify in your If...Then operation.
- MMZ23 days agoOccasional Contributor
Yes Try…Catch prevents the test from stopping.
Basically, I want to handle two scenarios in my testing.
When the application finds matching records for the searched name, it displays three radio buttons, and I need to select “False” and then proceed to save the record.
When the application does not find any matching record, it displays only one radio button (“No Record Found”), and I need to proceed by selecting this option.