# How to run test case? (Run FAILED)

**URL:** <https://forum.katalon.com/t/how-to-run-test-case-run-failed/6302>\
**Category:** Miscellaneous\
**Created:** [April 25, 2017, 4:00am UTC](https://forum.katalon.com/t/how-to-run-test-case-run-failed/6302 "2017-04-25T04:00:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoa\_Ngo](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@Hoa\_Ngo](https://forum.katalon.com/u/Hoa_Ngo)\
**Post date:** [April 25, 2017, 4:00am UTC](https://forum.katalon.com/t/how-to-run-test-case-run-failed/6302/1 "2017-04-25T04:00:44Z")

</div>

How to fix and run this script:

I record the script and run. Error message display:

Test Cases/Login page FAILED because (of) Unable to click on object ‘Object Repository/Page\_Madison Island/a\_Log In’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page\_Madison Island/a\_Log In’ located by ‘By.xpath: //a[count(. | id(“header-account”)/div[@class=“links”]/ul[1]/li[@class=“last”]/a[1]) = count(id(“header-account”)/div[@class=“links”]/ul[1]/li[@class=“last”]/a[1])]’ not found)

---

<div class="post-metadata">

**Author:** ![Hoa\_Ngo](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@Hoa\_Ngo](https://forum.katalon.com/u/Hoa_Ngo)\
**Post date:** [June 23, 2017, 3:15am UTC](https://forum.katalon.com/t/how-to-run-test-case-run-failed/6302/2 "2017-06-23T03:15:14Z")

</div>

Thanks, i do it. It run ok.

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [April 25, 2017, 1:25pm UTC](https://forum.katalon.com/t/how-to-run-test-case-run-failed/6302/3 "2017-04-25T13:25:49Z")

</div>

The error message is obvious: ‘Object is not found’. The reason is Katalon Studio can’t locate that object using the provided xpath

From my observation, this xpath is quite complicated so it will be an obstacle to locate an element. The better solution is to use unique property to identify element such as ‘id’ in this case  
[http://prnt.sc/f0mzn3](http://prnt.sc/f0mzn3)

Thanks
