Does your test script successfully log in to Gmail account at all?
I doubt it. I guess, your test script is unable to open the Gmail inbox page at all.
Since 2021, Google Chrome prevents test automation tools including Katalon Studio to log into Google account. Many people reported they are no longer able to automate testing on Gmail at all. Make search in this forum with keyword “gmail”. For example: