How do I check if div contains buttons inside it or not

Below is an image with two divs, the first with a button and the second without
How can I check if specific div has a button inside it or not via DOM tree

How can I use the contains() method in javascript on Katalon

1 Like