# Robot Framework Appium

**URL:** <https://forum.robotframework.org/t/robot-framework-appium/6789>\
**Category:** Robot Framework\
**Created:** [7 February 2024 13:56 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789 "2024-02-07T13:56:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtayyab153](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mtayyab153/32/3446_2.png) [@mtayyab153](https://forum.robotframework.org/u/mtayyab153)\
**Post date:** [7 February 2024 13:56 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789/1 "2024-02-07T13:56:49Z")

</div>

am getting the following error while using **Open Application** Keyword:  
WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource

I have followed the robot framework docs.

**Here is my code:**

Open Application … [http://localhost:4723/wd/hub](http://localhost:4723/wd/hub) … platformName=Android … deviceName=emulator-5554 … appPackage=chat21.android.demo … appActivity=chat21.android.demo.SplashActivity … automationName=Uiautomator2

**Appium Error:** Request idempotency key: e116ec36-bc01-48f7-b4e8-b4bf55f51991 [HTTP] → POST /wd/hub/session [HTTP] {“capabilities”:{“firstMatch”:[{}],“alwaysMatch”:{“platformName”:“Android”,“appium:deviceName”:“emulator-5554”,“appium:appPackage”:“chat21.android.demo”,“appium:appActivity”:“chat21.android.demo.SplashActivity”,“appium:automationName”:“Uiautomator2”}}} [HTTP] No route found for /wd/hub/session [HTTP] ← POST /wd/hub/session 404 18 ms - 211

**Appium Version:** 2.4.1 **Uiautomator2 Version** : 2.44.2

I have tried the solutions available on the internet but still my issue isn’t resolved.

---

<div class="post-metadata">

**Author:** ![\_daryl](https://avatars.discourse-cdn.com/v4/letter/_/45deac/32.png) [@\_daryl](https://forum.robotframework.org/u/_daryl)\
**Post date:** [7 February 2024 15:47 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789/2 "2024-02-07T15:47:38Z")

</div>

> [@mtayyab153](#):
>
> [HTTP] No route found for /wd/hub/session [HTTP]

Hi

What host and port do you have set on teh appium server? The localhost you can find in your host file should be 127.0.0.1 unless it has been adjusted, so you could just remove localhost and set it `Open Application 127.0.0.1/wd/hub ...` to see if that yields anything different.

You may also just need to set the remote path as /wd/hub if you are using Appium Desktop (never had a need to set this, nor do I have the option, but something to take a look at). But personally, I’ve never really run into any issues with my own.

in addition, there is mention of setting allow CORS under Advanced; this isn’t something I’ve done before or needed to.  
**Note:** _CORS compatibility mode, which will allow connections to the Appium server from within websites hosted on any domain…_

Hope one of them help  
Thanks

---

<div class="post-metadata">

**Author:** ![mtayyab153](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mtayyab153/32/3446_2.png) [@mtayyab153](https://forum.robotframework.org/u/mtayyab153)\
**Post date:** [7 February 2024 18:59 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789/3 "2024-02-07T18:59:18Z")

</div>

I have installed appium via npm and starting the appium server by typing command “appium” in cmd. When i start the server it says “[http://0.0.0.0:4723](http://0.0.0.0:4723)”. Please help to resolve the issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![\_daryl](https://avatars.discourse-cdn.com/v4/letter/_/45deac/32.png) [@\_daryl](https://forum.robotframework.org/u/_daryl)\
**Post date:** [8 February 2024 00:55 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789/4 "2024-02-08T00:55:21Z")

</div>

> [@mtayyab153](#):
>
> appium via npm

Never ran via npm, looks as though you need to pass the ` --address 127.0.0.1`

---

<div class="post-metadata">

**Author:** ![mtayyab153](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mtayyab153/32/3446_2.png) [@mtayyab153](https://forum.robotframework.org/u/mtayyab153)\
**Post date:** [8 February 2024 02:16 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789/5 "2024-02-08T02:16:30Z")

</div>

Thanks for the help!

I have run the appium server by running command “ **appium --address 127.0.0.1** ”  
and change the code to “**[http://localhost:4723](http://localhost:4723)**” …  
I have removed the trailing /wd/hub from the above url.  
Could you specify why there’s /wd/hub in the docs?

---

<div class="post-metadata">

**Author:** ![\_daryl](https://avatars.discourse-cdn.com/v4/letter/_/45deac/32.png) [@\_daryl](https://forum.robotframework.org/u/_daryl)\
**Post date:** [8 February 2024 02:26 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789/6 "2024-02-08T02:26:36Z")

</div>

Not a problem 🙂

**wd** is the short form of _WebDriver_

**hub** refers to _Selenium Grid_ configuration where the two components are:

- **Selenium Grid Hub** (is commonly termed as **hub** )
- **Selenium Grid Node** (is commonly termed as **node** )
- **wd/hub** is the part of the _uri_ through which the **node** communicates with the **hub**

---

<div class="post-metadata">

**Author:** ![mtayyab153](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mtayyab153/32/3446_2.png) [@mtayyab153](https://forum.robotframework.org/u/mtayyab153)\
**Post date:** [8 February 2024 02:39 UTC](https://forum.robotframework.org/t/robot-framework-appium/6789/7 "2024-02-08T02:39:25Z")

</div>

Thanks for your assistance.Always looking to explore the robot framework .
