Hello All,
I am trying to write an IF statement to complete the following in Katalon:
I want Katalon to check that the shopping cart is NOT empty
IF NOT empty click view shopping cart details
IF empty, click add to shopping cart.
Can someone please show me how to write this? Thanks for your help.
Hello uyen,
Thank you so much for responding to my inquiry. However, when I click the link that you provided I am not able to see the recording. Instead I see HTML code like below.
FYI: Moved this out of the Tips and Tricks category and into the General Discussions category.
If you can share the HTML you are working with, we could give you a custom solution using groovy. We’d need to see the HTML for the cart “widget”, basically the icon and/or text on the page that indicates that your cart is/is not empty. Then we’ll need to see the HTML for the link to “view shopping cart details” and the “add to shopping cart” button.