# Cannot spy/record Mobile

**URL:** <https://forum.katalon.com/t/cannot-spy-record-mobile/14349>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [November 20, 2018, 9:49am UTC](https://forum.katalon.com/t/cannot-spy-record-mobile/14349 "2018-11-20T09:49:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tam1](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@Tam1](https://forum.katalon.com/u/Tam1)\
**Post date:** [November 20, 2018, 9:49am UTC](https://forum.katalon.com/t/cannot-spy-record-mobile/14349/1 "2018-11-20T09:49:19Z")

</div>

Hello experts,

I got the error when trying to spy/record Mobile application. On Katalon UI I got an error popup _‘Fail to start the Appium server in 60 seconds’_

I open appium.txt file in project folder and see the following log

> ```auto
> [35m[Appium][39m Welcome to Appium v1.8.1
> 
> ```
> 
> ```auto
> [35m[Appium][39m Non-default server args:
> 
> ```
> 
> ```auto
> [35m[Appium][39m port: 49998
> 
> ```
> 
> ```auto
> [35m[Appium][39m chromeDriverPort: 49999
> 
> ```
> 
> ```auto
> [35m[Appium][39m tmpDir: C:\Users\ADMIN\AppData\Local\Temp\\Katalon\Appium\Temp1542704635422
> 
> ```
> 
> ```auto
> [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:49998
> 
> ```

I recognize invalid path on the log C:\Users\ADMIN\AppData\Local\*_Temp\\Katalon_\*\Appium\Temp1542704635422

Is it the reason that I cannot spy/record mobile application or another reason, please help to advice.

Thank you

---

<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:** [November 21, 2018, 4:43am UTC](https://forum.katalon.com/t/cannot-spy-record-mobile/14349/2 "2018-11-21T04:43:14Z")

</div>

Hi Tam,

I wanted to make sure that you saw the instructions on the Troubleshooting page for the 60 second error:

> Set your Appium Log Level to “Debug” which you can find this option in Windows \> Katalon Studio Preferences \> Katalon \> Mobile to generate debug logs of Appium.  
> After this change is applied, retry your record/spy session and then open generated .appium file in the project folder.  
> Somewhere in this file you are likely will see these lines:  
> `[debug] [ADB] Running '..\adb.exe' with args: [...] ``[debug] [ADB] Found package: 'com.abc.def.xyz' and fully qualified activity name : 'com.egh.jik' ``[debug] [ADB] Incorrect package and activity. Retrying.`  
> The root cause is Katalon Studio can’t start application due to incorrect package and activity by default, so you need to add additional settings to desired capabilities:
> 
> - Navigate to Mobile settings (Project \> Settings \> Execution \> Default \> Mobile \> Android)
> - Add the following key  
> Name: appWaitActivity  
> Value: com.\* (based on the prefix of ‘Found package’ log)

Based on your log above, it seems like you might have done the logging part, but I was wondering if you set the appWaitActivity setting (you can try just com.\* or the bundle identifier for your app).

Hope this helps,

Chris

---

<div class="post-metadata">

**Author:** ![Tam1](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@Tam1](https://forum.katalon.com/u/Tam1)\
**Post date:** [December 10, 2018, 3:54am UTC](https://forum.katalon.com/t/cannot-spy-record-mobile/14349/3 "2018-12-10T03:54:11Z")

</div>

Hello, sorry for the late reply, I did same steps on another machine and it worked fine. Then I reset the OS, and it worked on my machine too.

---

<div class="post-metadata">

**Author:** ![hountari](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@hountari](https://forum.katalon.com/u/hountari)\
**Post date:** [August 30, 2019, 12:07pm UTC](https://forum.katalon.com/t/cannot-spy-record-mobile/14349/4 "2019-08-30T12:07:52Z")

</div>

> [@Chris\_Trevarthen](#):
>
> Name: appWaitActivity  
> Value: com.\*

Hi Chris,

I have navigate to Project → Settings → Execution → Default → Mobile → Android, but I can not find appWaitActivity, could you tell me more detail?

Frain,

Cheers

---

<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:** [September 3, 2019, 3:14am UTC](https://forum.katalon.com/t/cannot-spy-record-mobile/14349/5 "2019-09-03T03:14:42Z")

</div>

Hi @hountari,

The section you want is `Project->Settings->Desired Capabilities->Mobile->Android`.

Then you can Add a new property and fill in the values:

 ![49%20PM](https://europe1.discourse-cdn.com/katalon/original/2X/a/a56a5a8253f7f47f4dcfe8101fa319353fbc3800.png)

Hope this helps,

Chris

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:40am UTC](https://forum.katalon.com/t/cannot-spy-record-mobile/14349/6 "2022-08-08T07:40:00Z")

</div>

Archived on August 8, 2022, 7:40am UTC


