Xpath not working in Android WebView Appium

I’m new to Appium. I’ve to enter text in EditText in Android WebView with the following xpath,

//android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.webkit.WebView[1]/android.webkit.WebView[1]/android.view.View[3]/android.widget.EditText[1]

I’m getting the following error,

info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:"Could not find an element using supplied strategy. "}

Anyone please help me. Thanks in advance.

You need to switch the context to go into webview. After that the code will work exactly similar to selenium web automation script. i.e. HTML content not native.

Can you please tell me how to switch context, I’m very new to Appium. If possible please post the code. Thank you.