How can i define if webpage contains element not present

I want to implement the webpage contains element not present.
How can i define not symbol in below code:-

if (WebAutomation.WebPageContainsElement BrowserInstance:Browser Control:MahindraHRElement.Genie_chatlog.DownloadLogs) then

Hi,

You can check if the statement is true or false and proceed accordingly.

For example:

if (WebAutomation.WebPageContainsElement BrowserInstance:Browser Control:MahindraHRElement.Genie_chatlog.DownloadLogs) = false then
    Console.Write Message: 'does not exist'
end
3 Likes

Admin note: @nutan Please do not post again a topic which belongs in a specific category as Uncategorized.
Take the time to post to the appropriate category in order to maintain our forum in the best state possible and help other members find solutions easily.
Please respect the rules.
Thank you.