How to automate 3rd party application Login Oauth2.0?

It is giving me no such element error while trying to send keys in email id and password fields…login page is Oauth2.0 taken from microsoft…can one plz give me solution for this…