# Unable to click on Signin button

**URL:** <https://discuss.appium.io/t/unable-to-click-on-signin-button/9347>\
**Category:** Support\
**Created:** [March 28, 2016, 1:25pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347 "2016-03-28T13:25:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravikiran\_Chowdary](https://discuss.appium.io/user_avatar/discuss.appium.io/ravikiran_chowdary/32/1969_2.png) [@Ravikiran\_Chowdary](https://discuss.appium.io/u/Ravikiran_Chowdary)\
**Post date:** [March 28, 2016, 1:25pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/1 "2016-03-28T13:25:26Z")

</div>

after entered the credentails, there is sign in button, I have used normal click command/ tap functinoality to click dat particualr button, script is getting passed but clicking is not happenining, Any alertnate methods to click on this particualr button

 ![](https://discuss.appium.io/uploads/default/original/2X/f/f58e00621286eb987c0b8fe6961f2b57bcc5a0e5.png) **_strong text_**  
please find the attached SS…

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [March 28, 2016, 2:07pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/2 "2016-03-28T14:07:38Z")

</div>

add you code for help.

---

<div class="post-metadata">

**Author:** ![117](https://discuss.appium.io/user_avatar/discuss.appium.io/117/32/6821_2.png) [@117](https://discuss.appium.io/u/117)\
**Post date:** [February 17, 2020, 12:55pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/3 "2020-02-17T12:55:27Z")

</div>

Hi guys, seems, I have the same issue.  
I am QA and trying integrate the Appium into my pet-project in the first time, I trying to click on the Next button programmatically using appium library. This button should brings me to the next screen, but nothing happens. Please, take a look at the code, will you have any ideas about why it doesn’t work, Thanks)  
Note: I have native app for AndroidTV devices. I installed him to Android\_TV\_720p\_API\_28 emulator.  
**My code:** [myCode.txt](https://discuss.appium.io/uploads/short-url/5aKTvoXoe9d4MZGvnwfb8H37587.txt) (1.9 KB)  
**Appium-server logs** : [appium-server-logs.txt](https://discuss.appium.io/uploads/short-url/mC6r14egRduFBWLcNt4h4EofkgF.txt) (33.7 KB)  
**pom file:** [pom.txt](https://discuss.appium.io/uploads/short-url/fRNrwIlPpkaN8D8BPZ33NPqYhDj.txt) (1.3 KB)

I discussed with familiar developer, and he said that Next button is located in the different activity named AppConfiguratorActivity.  
So, when I switch to this activity (AppConfiguratorActivity) and tried click on the Next button, I receive error: [error\_appium-server-logs.txt](https://discuss.appium.io/uploads/short-url/qGGdqiy1cL6FuiUYvAdpqrbEnM9.txt) (30.0 KB)  
**new code(tried switch to AppConfiguratorActivity):** [newCode.txt](https://discuss.appium.io/uploads/short-url/b0vZ9zPZCUcpfeYNO5ccVkOUnZb.txt) (2.2 KB)

---

<div class="post-metadata">

**Author:** ![abhiqa](https://discuss.appium.io/user_avatar/discuss.appium.io/abhiqa/32/11074_2.png) [@abhiqa](https://discuss.appium.io/u/abhiqa)\
**Post date:** [February 17, 2020, 1:06pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/4 "2020-02-17T13:06:23Z")

</div>

@117 android:exported=“true” should be in AndroidManifest.xml  
details can be found on below link:  
[Link](https://stackoverflow.com/questions/19829507/android-java-lang-securityexception-permission-denial-starting-intent)

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [February 17, 2020, 1:08pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/5 "2020-02-17T13:08:48Z")

</div>

add also output on thi screen with:

```auto
System.out.println(driver.getPageSource());

```

here we can see your “Next” element and it attributes.

---

<div class="post-metadata">

**Author:** ![117](https://discuss.appium.io/user_avatar/discuss.appium.io/117/32/6821_2.png) [@117](https://discuss.appium.io/u/117)\
**Post date:** [February 17, 2020, 2:26pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/6 "2020-02-17T14:26:56Z")

</div>

@Aleksei Hi! How you think, Am I took the right locator?  
page source: [PageSource.txt](https://discuss.appium.io/uploads/short-url/dA3O9sA0qRMO08Nt2y7PFfjjGCT.txt) (11.0 KB)

`MobileElement el1 = (MobileElement) _driver.findElement(MobileBy.AndroidUIAutomator("new UiSelector().resourceIdMatches(\".*guidedactions_item_title\").text(\"Next\")"));`

**Note:**  
**How element tree looks in UIAutomatorViewer:** [dump.txt](https://discuss.appium.io/uploads/short-url/ro3b7A7N2JS1sN6lE49X679YY1W.txt) (9.3 KB)

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [February 17, 2020, 2:41pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/7 "2020-02-17T14:41:52Z")

</div>

el1 code looks OK.  
but in " [myCode.txt](https://discuss.appium.io/uploads/short-url/5aKTvoXoe9d4MZGvnwfb8H37587.txt)" i do not see **TAP action** on el1.

e.g. use:

```auto
TapOptions tapOptions;
try {
       tapOptions = new TapOptions().withElement(ElementOption.element(el1));
       new TouchAction(driver).tap(tapOptions).perform();
} catch (Exception e) {
       e.printStackTrace();
}

```

Also in Developer Android Menu enable “Show touches” -\> it will help you to see where TAP happens.

---

<div class="post-metadata">

**Author:** ![117](https://discuss.appium.io/user_avatar/discuss.appium.io/117/32/6821_2.png) [@117](https://discuss.appium.io/u/117)\
**Post date:** [February 17, 2020, 2:49pm UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/8 "2020-02-17T14:49:13Z")

</div>

@Aleksei Exactly, you are right, I stupid, I forgot that need to click/tap on the button 😅

---

<div class="post-metadata">

**Author:** ![117](https://discuss.appium.io/user_avatar/discuss.appium.io/117/32/6821_2.png) [@117](https://discuss.appium.io/u/117)\
**Post date:** [February 18, 2020, 9:47am UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/9 "2020-02-18T09:47:12Z")

</div>

Hi guys! Thanks for replies  
So, I used to **TAP action** code that provided @Aleksei, but I still cannot bring to the next screen.  
**code:** [code.txt](https://discuss.appium.io/uploads/short-url/w2Fe30ZrP6hpqAf9MVrEbSjLT54.txt) (2.4 KB)  
**appium-logs:** [appium-server-logs.txt](https://discuss.appium.io/uploads/short-url/qhojyW7WfJgm46nO6Kog3LJtM0f.txt) (31.7 KB)  
**XML Source to Clipboard:** [XML Source to Clipboard.txt](https://discuss.appium.io/uploads/short-url/u0Jyjf7K1XTbOBV03n9QBsG77br.txt) (11.0 KB)

Please, attention pay, I enabled “Show touches” as Aleksei told me. And what I see, if I tap on Next text —\> I cannot go to the next screen, like that:

 ![Screenshot_1](https://discuss.appium.io/uploads/default/original/2X/9/93563b13b9bf9e7c60442fde06de2d09cd8ed844.jpeg)

**but** , if I move a focus to the right side and make tap —\> I can go to the next screen, like that:

 ![Screenshot_2](https://discuss.appium.io/uploads/default/original/2X/f/fe2b63e2e9bab4021f56862af6ae5e757e25e8aa.jpeg)

May be, it linked to wrong locator:  
`MobileElement el1 = (MobileElement) _driver.findElement(MobileBy.AndroidUIAutomator("new UiSelector().resourceIdMatches(\".*guidedactions_item_title\").text(\"Next\")"));`

I asked familiar developer, and he said that probably need to tap/click on GuideActionItemCantainer:

 ![image](https://discuss.appium.io/uploads/default/original/2X/3/30971b6784ca8002aa235ad5c507c2ff62814974.png)

but I don’t see GuideActionItemCantainer in SourcePage.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [February 18, 2020, 10:49am UTC](https://discuss.appium.io/t/unable-to-click-on-signin-button/9347/10 "2020-02-18T10:49:53Z")

</div>

Double check that you can reproduce this manually. If should be reproducible also manually. It just a bug in such case.
