# Error in capturing objects

**URL:** <https://forum.katalon.com/t/error-in-capturing-objects/13139>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [September 11, 2018, 6:46am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139 "2018-09-11T06:46:31Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![kranthi\_kiran](https://avatars.discourse-cdn.com/v4/letter/k/f17d59/32.png) [@kranthi\_kiran](https://forum.katalon.com/u/kranthi_kiran)\
**Post date:** [September 11, 2018, 6:46am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/1 "2018-09-11T06:46:31Z")

</div>

Hi all,  
I am unable to capture the objects to test the app and the device screen is showing empty and getting \*\*“Failed to execute runnable (org.eclipse.core.runtime.AssertionFailedException: null argument:)”\*\*error is coming.Can anyone suggest how to solve this

![](https://s3.amazonaws.com/katalon-forum/editor/ss/564luhskatcj.png "Image: https://s3.amazonaws.com/katalon-forum/editor/ss/564luhskatcj.png")

[CAPTURE ERR.PNG](https://s3.amazonaws.com/katalon-forum/editor/ss/564luhskatcj.png)

---

<div class="post-metadata">

**Author:** ![Walter\_Fernandes](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@Walter\_Fernandes](https://forum.katalon.com/u/Walter_Fernandes)\
**Post date:** [September 12, 2018, 6:15am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/2 "2018-09-12T06:15:09Z")

</div>

Hello,

Uninstall the Appium using

npm uninstall -g appium

and Install the stable build

npm uninstall -g appium@1.8

It Should work.

---

<div class="post-metadata">

**Author:** ![Walter\_Fernandes](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@Walter\_Fernandes](https://forum.katalon.com/u/Walter_Fernandes)\
**Post date:** [September 12, 2018, 6:16am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/3 "2018-09-12T06:16:43Z")

</div>

Let me know if you still face issue by doing it

---

<div class="post-metadata">

**Author:** ![Guillermo\_Torres](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@Guillermo\_Torres](https://forum.katalon.com/u/Guillermo_Torres)\
**Post date:** [September 12, 2018, 6:51pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/4 "2018-09-12T18:51:51Z")

</div>

> [Walter Fernandes](https://forum.katalon.com/profile/10997/Walter%20Fernandes) said:
> 
> Let me know if you still face issue by doing it

I’m facing the same issue would you mean is that the default version that install npm now(1.9) isn’t stable?

---

<div class="post-metadata">

**Author:** ![Jorge\_Guzman\_Bozo](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@Jorge\_Guzman\_Bozo](https://forum.katalon.com/u/Jorge_Guzman_Bozo)\
**Post date:** [September 12, 2018, 8:09pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/5 "2018-09-12T20:09:09Z")

</div>

> [Walter Fernandes](https://forum.katalon.com/profile/10997/Walter%20Fernandes) said:
> 
> Hello,
> 
> Uninstall the Appium using
> 
> npm uninstall -g appium
> 
> and Install the stable build
> 
> npm uninstall -g appium@1.8
> 
> It Should work.

The second command is install not uninstall… ,…

Its works, you right,

Thanks a Lot!!

---

<div class="post-metadata">

**Author:** ![Guillermo\_Torres](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@Guillermo\_Torres](https://forum.katalon.com/u/Guillermo_Torres)\
**Post date:** [September 12, 2018, 9:58pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/6 "2018-09-12T21:58:29Z")

</div>

> [Walter Fernandes](https://forum.katalon.com/profile/10997/Walter%20Fernandes) said:
> 
> Hello,
> 
> Uninstall the Appium using
> 
> npm uninstall -g appium
> 
> and Install the stable build
> 
> npm uninstall -g appium@1.8
> 
> It Should work.

It works for me thanks

---

<div class="post-metadata">

**Author:** ![Walter\_Fernandes](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@Walter\_Fernandes](https://forum.katalon.com/u/Walter_Fernandes)\
**Post date:** [September 13, 2018, 5:07am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/7 "2018-09-13T05:07:17Z")

</div>

> [jorge](https://forum.katalon.com/profile/11097/jorge) said:
> 
> > [Walter Fernandes](https://forum.katalon.com/profile/10997/Walter%20Fernandes) said:
> > 
> > Hello,
> > 
> > Uninstall the Appium using
> > 
> > npm uninstall -g appium
> > 
> > and Install the stable build
> > 
> > npm uninstall -g appium@1.8
> > 
> > It Should work.
> 
> The second command is install not uninstall… ,…
> 
> Its works, you right,
> 
> Thanks a Lot!!

Sorry for that… It should be install, I missed it…

---

<div class="post-metadata">

**Author:** ![Ctof](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ctof/32/6099_2.png) [@Ctof](https://forum.katalon.com/u/Ctof)\
**Post date:** [September 13, 2018, 1:18pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/8 "2018-09-13T13:18:09Z")

</div>

> Guillermo Torres said:
> 
> > Walter Fernandes said:
> > 
> > Let me know if you still face issue by doing it
> 
> I’m facing the same issue would you mean is that the default version that install npm now(1.9) isn’t stable?

> **[Appium 1.9.0](https://forum.katalon.com/discussion/9410/appium-1-9-0#latest)**
>
> Hi, I updated Appium 1.8.1 to 1.9.0 (released on August 27) through the command: npm install -g appium Unfortunately, my android projects no longer work on Katalon 5.6.3 (including Spy and mobile recorder) So, i rollback to version 1.8.1 through: ...

> **[I can't spy or record on android mobile](https://forum.katalon.com/discussion/comment/21646#Comment_21646)**
>
> Hello, I am facing the same issue running on iPhone 6S. Solved by running the command below to revert back to appium version 1.8.1 npm install -g appium@1.8.1 2018-08-29\_08-08-34.png

I suggest that the Katalon team update the page: [https://www.katalon.com/videos/android-setup-windows/](https://www.katalon.com/videos/android-setup-windows/ "Link: https://www.katalon.com/videos/android-setup-windows/") by changing: “npm install -g appium” by “npm install -g appium@1.8.1” …

---

<div class="post-metadata">

**Author:** ![snowred.3112](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@snowred.3112](https://forum.katalon.com/u/snowred.3112)\
**Post date:** [February 28, 2019, 4:01am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/9 "2019-02-28T04:01:35Z")

</div>

hi all,  
i have the same issue.  
i can’t run appium by using npm, so i’m running manual.  
but it don’t work! how can i resolve this problem?

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [February 28, 2019, 5:07am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/10 "2019-02-28T05:07:13Z")

</div>

Hi @snowred.3112,

Since you can’t install Appium through npm, the version numbering gets a little weird. If you’re installing it via Appium Desktop, you’ll actually need to install Appium Desktop version 1.6.3, which includes the underlying Appium server 1.8.1.

Hope this helps,

Chris

---

<div class="post-metadata">

**Author:** ![snowred.3112](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@snowred.3112](https://forum.katalon.com/u/snowred.3112)\
**Post date:** [February 28, 2019, 7:20am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/11 "2019-02-28T07:20:50Z")

</div>

thank you @Chris_Trevarthen, it works for me 😃

---

<div class="post-metadata">

**Author:** ![ini](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@ini](https://forum.katalon.com/u/ini)\
**Post date:** [May 8, 2019, 9:28pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/12 "2019-05-08T21:28:51Z")

</div>

Hello @Chris_Trevarthen

I have compatible Katalon studio and Appium versions but i am still facing the same issue.  
Katalon Studio- 6.1.4  
Appium- 1.8.1

Please let me know if you have any solution for this or the versions i am using is incompatible.

Please see the attachments

 ![46%20PM](https://europe1.discourse-cdn.com/katalon/original/2X/c/c1329091f4c275aa92685b9fa36f8ee6e5517db9.jpeg) ![08%20PM](https://europe1.discourse-cdn.com/katalon/original/2X/e/e753a0ea062d2dc0c2bae0c10ca98b812d8af43b.png) ![57%20PM](https://europe1.discourse-cdn.com/katalon/optimized/2X/d/da9e10bb9943daae3344c85df88db925a52a21ac_2_690x34.png)

Thanks,  
Ini

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [May 9, 2019, 1:21pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/13 "2019-05-09T13:21:19Z")

</div>

Hi @ini,

Thanks for that info - the versions you show should be compatible, but I will test out that combination myself to see what else might be going on.

In the meantime, could you please confirm what your setting is for your Appium directory in Katalon by going to the Katalon Studio-\>Preferences-\>Katalon-\>Mobile screen?

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [May 9, 2019, 1:36pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/14 "2019-05-09T13:36:14Z")

</div>

Hi @ini,

I just tried with Katalon Studio 6.1.4 and Appium 1.8.1 to capture objects and I am able to.

Could you also try the sample Android projects that come with Katalon Studio to see if you’re able to record a test with that? You can get to that project from File-\>New Sample Project-\>Sample Android Mobile Tests Project.

– Chris

---

<div class="post-metadata">

**Author:** ![ini](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@ini](https://forum.katalon.com/u/ini)\
**Post date:** [May 9, 2019, 5:31pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/15 "2019-05-09T17:31:40Z")

</div>

Hello Chris,

Thanks so much for responding and hoping to get this resolved. Please see the attachment for the appium settings in Katalon.

Thanks,  
Ini

 ![41%20AM](https://europe1.discourse-cdn.com/katalon/original/2X/7/71b2dd0aaa552374c5a7e685a2c07d26407f6059.png)

---

<div class="post-metadata">

**Author:** ![ini](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@ini](https://forum.katalon.com/u/ini)\
**Post date:** [May 9, 2019, 5:39pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/16 "2019-05-09T17:39:51Z")

</div>

I tried the sample project as well. it launches the application like how it does with my apk as well. but it is not able to tap or do any other action on the app. similar thing is happening with the app i am trying to automate. it launches the app but unable to perform any further. Also, is there a Java/jdk or Android SDK installation I need to check the compatibility with? and any environment variable settings? I am using MAC-FYI. Please let me know.

This is the screenshot for sample project on Katalon.

 ![07%20AM](https://europe1.discourse-cdn.com/katalon/original/2X/3/314f1f292288199c402ff2cce4d4c813c2c719e1.png)

---

<div class="post-metadata">

**Author:** ![ini](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@ini](https://forum.katalon.com/u/ini)\
**Post date:** [May 9, 2019, 7:46pm UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/17 "2019-05-09T19:46:50Z")

</div>

Hello @Chris_Trevarthen

Thanks you so much for the response. I dug more into this issue and I was able to find a work around.

1. I installed appium-desktop and started appium server(other than installing appium server from npm install appium@1.8.1)- not sure if this helped me though but wanted to make sure i have everything set.
2. But it actually started working when i did this- I removed the appium path from Katalon Studios-\>Preferences-\>Mobile. i deleted Appium directory path from there and selected “Apply” and then again put the directory path back by browsing the appium path. not sure what exactly went wrong for the 1st time though! Sometimes deleting the emulator and creating it afresh also helps with everything is what i observed.

With this everything is up and running. Also please note that i have been working with EMULATORS created from ANDROID STUDIOS. Hope this helps someone who would run into issues like this in the future.

Thanks for all the help again!  
Ini

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [May 10, 2019, 12:40am UTC](https://forum.katalon.com/t/error-in-capturing-objects/13139/18 "2019-05-10T00:40:00Z")

</div>

Hi @ini glad you got it working! Thanks for sharing how you got it working, too!

—Chris
