Not able to find element using element id on webview

Hi All,

I want to automation one login page (web-view) for an ios application, I can locate the ID of the username and password field but when I am using the driver.elementById() it shows no such element found. Does any one has any idea about this.
I am using mocha and chai.