Automating MSAL login

Hello, I am trying to automate Microsoft MFA login using appium for a desktop app and it cannot find the element.

Scenario is application is launched and then it opens a Microsoft login and I want to put in user id and password and click next, but appium is unable to find any element on this new Microsoft login.

Errors are like below : {“status”:7,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters.”}}

Thanks