Appium andriod app to click on desktop icon

I want to click on say Phone tile icon on Android mobile.
It seems that I need to launch appium server with some app but not sure what app I should give it here. here I want to click on icons with in phone desktop.

I wrote below test for this but is not working
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.SetCapability(CapabilityType.BrowserName, “”);
capabilities.SetCapability(“deviceName”, “SampleSimulator”);
capabilities.SetCapability(“platformVersion”, “5.0”);
capabilities.SetCapability(“platformName”, “Android”);
capabilities.SetCapability(“appium-version”, “1.1”);
IWebDriver driver = new RemoteWebDriver(new Uri(“”), capabilities);
IWebElement button = driver.FindElement(By.Name(“Phone”));

Can some help me?

Actually if I specify app in capabilities which is not required for me, it is launching another app’s GUI and I had to manually click back to get to start screen to let the test find the Phone icon on desktop.
I tried to use
IWebDriver innerDriver = driver.SwitchTo().Window(“NATIVE_APP”); but it says not implemented

see if this helps

press_keycode 3
1 Like