# Appium UI is not visible properly for the APK Android

**URL:** <https://discuss.appium.io/t/appium-ui-is-not-visible-properly-for-the-apk-android/28330>\
**Category:** Support\
**Created:** [October 21, 2019, 3:37pm UTC](https://discuss.appium.io/t/appium-ui-is-not-visible-properly-for-the-apk-android/28330 "2019-10-21T15:37:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chetan\_M](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/4bbf92/32.png) [@Chetan\_M](https://discuss.appium.io/u/Chetan_M)\
**Post date:** [October 21, 2019, 3:37pm UTC](https://discuss.appium.io/t/appium-ui-is-not-visible-properly-for-the-apk-android/28330/1 "2019-10-21T15:37:14Z")

</div>

Not able to click in automation because IU is not properly visible in appium.

Please help me for this issue.  
Screen short is given below

 ![Untitled](https://discuss.appium.io/uploads/default/original/2X/f/fac323109cbc343bb0ca7127fa2c8a914c841c75.png)

Appium version: - 1.15.0 -1.  
Java client : - java-client-7.2.0

Desired capability details for appium viewer : -  
{  
“deviceName”: “moto”,  
“udid”: “ZF6222BQKC”,  
“platformVersion”: “8.0.0”,  
“automationName”: “UiAutomator2”,  
“autoGrantPermissions”: true,  
“appActivity”: “com.xyz.eapp.eapp”,  
“appPackage”: “com.xyz.eapp”,  
“platformName”: “Android”  
}

Commands through eclipse: -

```
 capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
 capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "8.0.0");
 capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "moto");
 capabilities.setCapability(MobileCapabilityType.UDID, "ZF6222BQKC");
 capabilities.setCapability("automationName", "UiAutomator2");
 capabilities.setCapability("appPackage", "com.xyz.eapp");
 capabilities.setCapability("appActivity", "com.xyz.eapp.eapp");
 capabilities.setCapability("autoGrantPermissions",true);
 capabilities.setCapability("unicodeKeyboard", true);
 capabilities.setCapability("resetKeyboard", true);
 capabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, "3000");
 capabilities.setCapability("noReset", true);
 capabilities.setCapability("fullReset", false);
 //capabilities.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
 AndroidDriver<AndroidElement> driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
 driver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);
 
 driver.findElementByAndroidUIAutomator("new UiSelector().text(\"Protection Solution\")").click();

```

Logs for Appium: -

[info] e[35m[HTTP]e[39m e[90m{“using”:"-android uiautomator",“value”:“new UiSelector().text(“Protection Solution”)”}e[39m  
[debug] e[35m[W3C (fb2a594c)]e[39m Calling AppiumDriver.findElement() with args: ["-android uiautomator",“new UiSelector().text(“Protection Solution”)”,“fb2a594c-c0c7-4f2d-9c52-4661a74fcb1d”]  
[debug] e[35m[BaseDriver]e[39m Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator  
[debug] e[35m[BaseDriver]e[39m Waiting up to 50000 ms for condition  
[debug] e[35m[WD Proxy]e[39m Matched ‘/element’ to command name ‘findElement’  
[debug] e[35m[WD Proxy]e[39m Proxying [POST /element] to [POST [http://localhost:8200/wd/hub/session/341338f5-760f-43cd-a763-f5fd07f9633f/element](http://localhost:8200/wd/hub/session/341338f5-760f-43cd-a763-f5fd07f9633f/element)] with body: {“strategy”:"-android uiautomator",“selector”:“new UiSelector().text(“Protection Solution”)”,“context”:"",“multiple”:false}  
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status 404: {“sessionId”:“341338f5-760f-43cd-a763-f5fd07f9633f”,“value”:{“error”:“no such element”,“message”:“An element could not be located on the page using the given search parameters”,“stacktrace”:"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann…  
[debug] e[35m[W3C]e[39m Matched W3C error code ‘no such element’ to NoSuchElementError

Please help me for this issue.
