Keyword Click can't find element on the page for no reason

Hi! Im trying to check emails using yopmail.
I need to click on email in order to open it. But I always get error “waiting for locator”. Which means there is no such locator.

There is a code of yopmail:

My code to click on email:
Click (//button[@class='lm'])[1]

I’ve tried every single tag for email with no luck (I got the same error). What I am doing wrong? I’ve checked - all other elements are working fine on yopmail with Click

@Vitaly This is because the left pane which contains the emails, is inside an iFrame with id “ifinbox”. So you have to select the iFrame first and than the element inside the iFrame .

Click id=ifinbox >>> (//button[@class='lm'])[1]

Also be aware if you hit the yopmail page too many times in an hour it will actively block you, so you may need to allow for that in your keywords?

I never determined how many times is “too many”, I encountered it and moved on to something else.

2 Likes

Thank you it will help