How to use if-else in karate UI automation

Viewed 317

I need to implement a condition in my feature that: if a particular element (says >USERNAME) is exist, it inputs the value in Username field. Else reload the page once and again wait for user name.

As in application some times page get freeze and I need to reload the same to get login screen. I have gone through with Conditional logic "https://github.com/intuit/karate#conditional-logic" but not able to understand much here. Please help.

0 Answers
Related