# NoSuchElementError from appium response when the element is visible and exist

**URL:** <https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744>\
**Category:** Issues/Bugs\
**Created:** [January 3, 2019, 8:43am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744 "2019-01-03T08:43:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tirzah](https://discuss.appium.io/user_avatar/discuss.appium.io/tirzah/32/8042_2.png) [@Tirzah](https://discuss.appium.io/u/Tirzah)\
**Post date:** [January 3, 2019, 8:43am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/1 "2019-01-03T08:43:44Z")

</div>

[[35m[HTTP]^[[39m ^[[37m–\>^[[39m ^[[37mPOST^[[39m ^[[37m/wd/hub/session/e924be69-537f-41cb-b294-47e4571ae5c8/element^[[39m  
^[[35m[HTTP]^[[39m ^[[90m{“using”:“accessibility id”,“value”:“menu”}^[[39m  
[debug] ^[[35m[MJSONWP]^[[39m Calling AppiumDriver.findElement() with args: [“accessibility id”,“menu”,“e924be69-537f-41cb-b294-47e4571ae5c8”]  
[debug] ^[[35m[XCUITest]^[[39m Executing command ‘findElement’  
[debug] ^[[35m[BaseDriver]^[[39m Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id  
[debug] ^[[35m[BaseDriver]^[[39m Waiting up to 0 ms for condition  
[debug] ^[[35m[JSONWP Proxy]^[[39m Matched ‘/element’ to command name ‘findElement’  
[debug] ^[[35m[JSONWP Proxy]^[[39m Proxying [POST /element] to [POST [http://localhost:8100/session/F7923CDE-61E0-45D5-8691-6591A80D301C/element](http://localhost:8100/session/F7923CDE-61E0-45D5-8691-6591A80D301C/element)] with body: {“using”:“accessibility id”,“value”:“menu”}  
[debug] ^[[35m[JSONWP Proxy]^[[39m Got response with status 200: {“value”:{“using”:“accessibility id”,“value”:“menu”,“description”:“unable to find an element”},“sessionId”:“F7923CDE-61E0-45D5-8691-6591A80D301C”,“status”:7}  
[debug] ^[[35m[MJSONWP]^[[39m Matched JSONWP error code 7 to NoSuchElementError  
[debug] ^[[35m[MJSONWP]^[[39m Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.

---

<div class="post-metadata">

**Author:** ![Tom\_Cockram](https://discuss.appium.io/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Tom\_Cockram](https://discuss.appium.io/u/Tom_Cockram)\
**Post date:** [January 4, 2019, 10:24am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/2 "2019-01-04T10:24:08Z")

</div>

Can you please paste the code that is trying to do this?

---

<div class="post-metadata">

**Author:** ![Tirzah](https://discuss.appium.io/user_avatar/discuss.appium.io/tirzah/32/8042_2.png) [@Tirzah](https://discuss.appium.io/u/Tirzah)\
**Post date:** [January 4, 2019, 11:22am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/3 "2019-01-04T11:22:10Z")

</div>

$(~menu).waitForVisible() &&  
$(~menu).click();

Above are the code to access the element  
But the appium is unable to locate the element though it’s visible on the mobile screen page

---

<div class="post-metadata">

**Author:** ![Tom\_Cockram](https://discuss.appium.io/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Tom\_Cockram](https://discuss.appium.io/u/Tom_Cockram)\
**Post date:** [January 4, 2019, 11:38am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/4 "2019-01-04T11:38:09Z")

</div>

In Java you have to tell it what element you’re clicking . This can either be done via xpath or element ID. I think you also need to do the same.

---

<div class="post-metadata">

**Author:** ![Tirzah](https://discuss.appium.io/user_avatar/discuss.appium.io/tirzah/32/8042_2.png) [@Tirzah](https://discuss.appium.io/u/Tirzah)\
**Post date:** [January 8, 2019, 6:32am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/5 "2019-01-08T06:32:15Z")

</div>

Hi Tom, Yes I did  
but somehow, I got this in the appium.log:5671909/element] with body: {“using”:“accessibility id”,“value”:“menu”}  
[debug] ^[[35m[JSONWP Proxy]^[[39m Got response with status 200: {“value”:{“using”:“accessibility id”,“value”:“menu”,“description”:“unable to find an element”},“sessionId”:“F3C53D73-43A4-4F8D-9C1D-E85EA5671909”,“status”:7}  
[debug] ^[[35m[MJSONWP]^[[39m Matched JSONWP error code 7 to NoSuchElementError  
[debug] ^[[35m[JSONWP Proxy]^[[39m Matched ‘/source’ to command name ‘getPageSource’  
[debug] ^[[35m[JSONWP Proxy]^[[39m Proxying [GET /source] to [GET [http://localhost:8100/session/F3C53D73-43A4-4F8D-9C1D-E85EA5671909/source](http://localhost:8100/session/F3C53D73-43A4-4F8D-9C1D-E85EA5671909/source)] with no body

---

<div class="post-metadata">

**Author:** ![Tirzah](https://discuss.appium.io/user_avatar/discuss.appium.io/tirzah/32/8042_2.png) [@Tirzah](https://discuss.appium.io/u/Tirzah)\
**Post date:** [January 8, 2019, 7:46am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/6 "2019-01-08T07:46:50Z")

</div>

got it resolved, [http://appium.io/docs/en/commands/mobile-command/](http://appium.io/docs/en/commands/mobile-command/)

---

<div class="post-metadata">

**Author:** ![Bhavin\_Vadukar](https://discuss.appium.io/user_avatar/discuss.appium.io/bhavin_vadukar/32/5470_2.png) [@Bhavin\_Vadukar](https://discuss.appium.io/u/Bhavin_Vadukar)\
**Post date:** [February 20, 2019, 11:09am UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/8 "2019-02-20T11:09:00Z")

</div>

Hi Tirzah,

Can you please let us know how exactly you got the solution for this issue.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Mohsin\_Shahzad](https://discuss.appium.io/user_avatar/discuss.appium.io/mohsin_shahzad/32/8377_2.png) [@Mohsin\_Shahzad](https://discuss.appium.io/u/Mohsin_Shahzad)\
**Post date:** [September 22, 2023, 1:44pm UTC](https://discuss.appium.io/t/nosuchelementerror-from-appium-response-when-the-element-is-visible-and-exist/24744/9 "2023-09-22T13:44:15Z")

</div>

I am having the same issue. Kindly do let me know the solution how to resolve this.
