How to switch the frames in android to find an element?

I am new to selenium. Am trying to click an element from a page. But i couldn’t click on the element. Reason is one layout is applied on whole page. So cant click on the element. I used to switch the frame to interact the element. I used below method to interact.

WebElement avatarstudio = driver.findElement(“layout_main”));


Still no use. I am getting below exception

Exception in thread “main” org.openqa.selenium.WebDriverException: Method has not yet been implemented (WARNING: The server did not provide any stacktrace information)

Please someone help me to move forward.

Thanks in advance.