# Newbie - First intro test fails on the second step

**URL:** <https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [February 28, 2019, 11:46pm UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277 "2019-02-28T23:46:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeithPresley365](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@KeithPresley365](https://forum.katalon.com/u/KeithPresley365)\
**Post date:** [February 28, 2019, 11:46pm UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277/1 "2019-02-28T23:46:11Z")

</div>

The following test instruction…

WebUI.click(findTestObject(‘Page\_CURA Healthcare Service/a\_Make Appointment’))

….from the Introduction…

[https://docs.katalon.com/katalon-studio/tutorials/introduction-to-web-testing.html#get-ready](https://docs.katalon.com/katalon-studio/tutorials/introduction-to-web-testing.html#get-ready)

…fails…

02-28-2019 04:03:26 PM click(findTestObject(“Page\_CURA Healthcare Service/a\_Make Appointment”))

Elapsed time: 0.797s

click(findTestObject(“Page\_CURA Healthcare Service/a\_Make Appointment”)) FAILED.  
Reason:  
com.kms.katalon.core.exception.StepFailedException: Unable to click on object (Root cause: java.lang.IllegalArgumentException: Object is null)  
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$0.call(Unknown Source)  
at ASPNet360SiteTestCase01.run(ASPNet360SiteTestCase01:17)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:328)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:106)  
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:97)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1551369794850.run(TempTestCase1551369794850.groovy:22)

….anyone got any ideas?

Many thanks in advance,

Keith.

---

<div class="post-metadata">

**Author:** ![Harold\_Owen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/harold_owen/32/417_2.png) [@Harold\_Owen](https://forum.katalon.com/u/Harold_Owen)\
**Post date:** [February 28, 2019, 11:55pm UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277/2 "2019-02-28T23:55:32Z")

</div>

In my experience this means that the path “Page\_CURA Healthcare Service/a\_Make Appointment” in findTestObject(“Page\_CURA Healthcare Service/a\_Make Appointment”) is incorrect, hence, the object is not found in the Object Repository.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 1, 2019, 12:22am UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277/3 "2019-03-01T00:22:51Z")

</div>

I guess you have this code:

```auto
WebUI.openBrowser('https://katalon-demo-cura.herokuapp.com/')
WebUI.click(findTestObject('Page_CURA Healthcare Service/a_Make Appointment'))

```

Please change this a bit as follows and try again:

```auto
WebUI.openBrowser('https://katalon-demo-cura.herokuapp.com/')
WebUI.verifyElementPresent(findTestObject('Page_CURA Healthcare Service/a_Make Appointment'), 10)
WebUI.click(findTestObject('Page_CURA Healthcare Service/a_Make Appointment'))

```

---

<div class="post-metadata">

**Author:** ![KeithPresley365](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@KeithPresley365](https://forum.katalon.com/u/KeithPresley365)\
**Post date:** [March 7, 2019, 4:26pm UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277/4 "2019-03-07T16:26:01Z")

</div>

Hi @kazurayam  
Thanks for the reply  
tried your suggestion…didn’t work either  
My question is, how do I see where the object “Page\_CURA Healthcare Service/a\_Make Appointment” is detailed on the webpage, all I see is this regarding the button…

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/8/8ace1f2c6d7819514d39df02189ab4a0257da2fb.jpeg)

…or should the test be trying to reference “btn-make-appointment” in some way?  
i.e.  
WebUI.click(findTestObject(‘btn-make-appointment’)) …{which I’ve just tried and doesn’t work either!}

---

<div class="post-metadata">

**Author:** ![KeithPresley365](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@KeithPresley365](https://forum.katalon.com/u/KeithPresley365)\
**Post date:** [March 7, 2019, 4:26pm UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277/5 "2019-03-07T16:26:17Z")

</div>

Thanks for the reply @Harold_Owen  
How do I view what is in the website/web page’s Object Repository?  
Looking at the page in the developer view in Google, this is what I see regarding the button…

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/8/8ace1f2c6d7819514d39df02189ab4a0257da2fb.jpeg)

strangle that Katalon’s own first test case example in their intro tutorial doesn’t work on their test website/page!?

---

<div class="post-metadata">

**Author:** ![francoarebuffi](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/francoarebuffi/32/16103_2.png) [@francoarebuffi](https://forum.katalon.com/u/francoarebuffi)\
**Post date:** [March 7, 2019, 4:46pm UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277/6 "2019-03-07T16:46:54Z")

</div>

Hello , i tried to reproduce your error.  
It seems that your code is correct but you dont have the object added in the object repository: a\_Make Appointment . the object should be in page called : Page\_CURA Healthcare Service (this should be a folder name in object repository section within katalon studio project).  
Try to create new folder in object repository called: Page\_CURA Healthcare Service . Once created, right-click and create new Test object. Call the object: a\_Make Appointment . Inside the object  
click on xpath selection method radiobutton and paste this xpath: //\*[@id=“btn-make-appointment”] .  
Then try to run your test again

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [March 7, 2019, 8:58pm UTC](https://forum.katalon.com/t/newbie-first-intro-test-fails-on-the-second-step/20277/7 "2019-03-07T20:58:07Z")

</div>

Keith,

Please find the attached screenshot.

 ![44](https://europe1.discourse-cdn.com/katalon/original/2X/e/ea89866d51a1b8f6be50818f8e9a9d345a23558d.png)

This screenshot shows how the “Page\_CURA Healthcare Service/a\_Make Appointment” Test Object looks like in the sample project on my mac. Do you have a similar Test Object on your side?
