# When i run a sample testcase, i am getting this error. please anyone help me with this

**URL:** <https://forum.katalon.com/t/when-i-run-a-sample-testcase-i-am-getting-this-error-please-anyone-help-me-with-this/105062>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [November 16, 2023, 11:03am UTC](https://forum.katalon.com/t/when-i-run-a-sample-testcase-i-am-getting-this-error-please-anyone-help-me-with-this/105062 "2023-11-16T11:03:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [November 16, 2023, 3:54pm UTC](https://forum.katalon.com/t/when-i-run-a-sample-testcase-i-am-getting-this-error-please-anyone-help-me-with-this/105062/6 "2023-11-16T15:54:40Z")

</div>

Hi @muralidharan.s this might help…

Executing test cases tips:

When loading a new page, a WebUI.waitForPageLoad() function might be required:

```auto
WebUI.waitForPageLoad(5) //wait up-to 5 seconds, (5+ seconds might be needed, I use 30+ when working with CICD Pipelines).
//Your test script steps...

```

When loading a new page, a WebUI.waitForElementVisible() functon and or a WebUI.enhancedClick() function might be required:

```auto
WebUI.waitForElementVisible(findTestObject(HelpButton), //wait up-to 5 seconds, (5+ seconds might be needed).
WebUI.enhancedClick(findTestObject('HelpButton'), FailureHandling.OPTIONAL)
//Your test script steps...

```

When working with drop-down elements like country/state/province, then you might have to use a WebUI.waitForElementClickable() function:

```auto
WebUI.waitForElementClickable(findTestObject(stateSelector), 5) //wait up-to 5 seconds, (5+ seconds might be needed).
WebUI.enhancedClick(findTestObject('stateSelector'), FailureHandling.OPTIONAL)
//Your test script steps...

```

---

_[View the full topic](https://forum.katalon.com/t/when-i-run-a-sample-testcase-i-am-getting-this-error-please-anyone-help-me-with-this/105062)._
