# Appium and Java Script

**URL:** <https://discuss.appium.io/t/appium-and-java-script/9440>\
**Category:** Support\
**Created:** [March 31, 2016, 9:28pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440 "2016-03-31T21:28:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmguhe](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@mmguhe](https://discuss.appium.io/u/mmguhe)\
**Post date:** [March 31, 2016, 9:28pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440/1 "2016-03-31T21:28:24Z")

</div>

Hello,

I am looking for some tutorial/ documentation for appium with java script.  
Please let me know if anyone is aware about any information on the same.

Thanks!!

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [April 1, 2016, 7:40am UTC](https://discuss.appium.io/t/appium-and-java-script/9440/2 "2016-04-01T07:40:17Z")

</div>

Have you tried doing a google search? There are plenty of resources out there:

[https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=appium%20"java%20script"%20tutorial](https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=appium%20%22java%20script%22%20tutorial)

---

<div class="post-metadata">

**Author:** ![mmguhe](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@mmguhe](https://discuss.appium.io/u/mmguhe)\
**Post date:** [April 4, 2016, 9:51pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440/3 "2016-04-04T21:51:44Z")

</div>

Thanks for sharing the search url. I tried doing the same. But majority of the results are covering either appium or appium-java.  
only 2 or 3 have appium and node.js framework explained. But not in detail.

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [April 5, 2016, 4:39am UTC](https://discuss.appium.io/t/appium-and-java-script/9440/4 "2016-04-05T04:39:06Z")

</div>

The second link on that search, **Appium JavaScript Workshop** , that has detailed examples and run commands didn’t help?

---

<div class="post-metadata">

**Author:** ![mmguhe](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@mmguhe](https://discuss.appium.io/u/mmguhe)\
**Post date:** [April 5, 2016, 4:28pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440/5 "2016-04-05T16:28:00Z")

</div>

Yes, actually I cloned the same project and was working on that.  
I wanted to run locally and set SAUCE=false. I have ipa for the iphone app. I have put it in my apps folder.  
Ques : app.js : do I need to zip the ipa file?  
caps.js : should I update the or add in the list of capabilities?

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [April 5, 2016, 6:36pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440/6 "2016-04-05T18:36:13Z")

</div>

The ipa file is already a zip file, it’s just renamed to .ipa. You can test this by opening with an archive tool. \<–keep in mind that the .ipa file is only for real devices. If you want to test on Simulator you’ll have to compile for Simulator and use a .app file.

For the capabilities, I for proof of concept you could probably get away with the defaults (unless they don’t work in your environment), but somewhere down the line you are going to want to customize this.

---

<div class="post-metadata">

**Author:** ![mmguhe](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@mmguhe](https://discuss.appium.io/u/mmguhe)\
**Post date:** [April 5, 2016, 6:39pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440/7 "2016-04-05T18:39:37Z")

</div>

Thanks. I am able to do the setup and execute but getting error on Sauce lab credentials. I am trying to launch the test app on my device.  
I have changed the capability to :  
‘9.0.2’: {  
browserName: ‘’,  
appiumVersion: appiumVer,  
platformName: ‘iOS’,  
platformVersion: ‘9.0.2’,  
deviceName: ‘iPhone 6s’,  
app: undefined // will be set later  
},

* * *

:javascript-workshop mguhe$ grunt test:ios:9.0.2  
Running “env:9.0.2” (env) task

Running “simplemocha:ios” (simplemocha) task

Please configure your sauce credential:

export SAUCE\_USERNAME=\<SAUCE\_USERNAME\>  
export SAUCE\_ACCESS\_KEY=\<SAUCE\_ACCESS\_KEY\>

Warning: Missing sauce credentials Use --force to continue.

Aborted due to warnings.

How do I run it on my local device?

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [April 5, 2016, 8:43pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440/8 "2016-04-05T20:43:40Z")

</div>

Seems like it’s not reading ‘SAUCE=false’ properly. Are you running this in any kind of IDE?

---

<div class="post-metadata">

**Author:** ![mmguhe](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@mmguhe](https://discuss.appium.io/u/mmguhe)\
**Post date:** [April 6, 2016, 5:58pm UTC](https://discuss.appium.io/t/appium-and-java-script/9440/9 "2016-04-06T17:58:49Z")

</div>

Now its working fine. I could setup and launch my app. Thanks!!

---

<div class="post-metadata">

**Author:** ![walk2mani](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/5f8ce5/32.png) [@walk2mani](https://discuss.appium.io/u/walk2mani)\
**Post date:** [March 21, 2019, 11:33am UTC](https://discuss.appium.io/t/appium-and-java-script/9440/10 "2019-03-21T11:33:24Z")

</div>

Yes Even am Looking For Java Script Appium
