# Documentation error: \[WebUI\] Verify Element Visible

**URL:** <https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [April 5, 2018, 11:16am UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124 "2018-04-05T11:16:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mate\_Mrse](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mate_mrse/32/345_2.png) [@Mate\_Mrse](https://forum.katalon.com/u/Mate_Mrse)\
**Post date:** [April 5, 2018, 11:16am UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124/1 "2018-04-05T11:16:45Z")

</div>

Documentation says timeOut parameter is accepted by verifyElementVisible.  
However, when I run the command with time out, like this:

```auto
WebUI.verifyElementVisible(findTestObject('Object Repository/X'), 5, FailureHandling.OPTIONAL

```

I get the following error message:

```auto
Test Cases/TC-00X FAILED because (of) groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.verifyElementVisible() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject, java.lang.Integer, com.kms.katalon.core.model.FailureHandling) values: [TestObject - 'Object Repository/X', ...]
Possible solutions: verifyElementVisible(com.kms.katalon.core.testobject.TestObject, com.kms.katalon.core.model.FailureHandling), verifyElementVisible(com.kms.katalon.core.testobject.TestObject), verifyElementNotVisible(com.kms.katalon.core.testobject.TestObject, com.kms.katalon.core.model.FailureHandling), verifyElementNotVisible(com.kms.katalon.core.testobject.TestObject)

```

---

<div class="post-metadata">

**Author:** ![Mate\_Mrse](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mate_mrse/32/345_2.png) [@Mate\_Mrse](https://forum.katalon.com/u/Mate_Mrse)\
**Post date:** [April 6, 2018, 1:58pm UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124/2 "2018-04-06T13:58:04Z")

</div>

I found a workaround, in case anyone is interested. Well, not exactly a workaround for this precise case, but for me it worked out fine: I used  
**[verifyElementInViewport]([https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementInViewport](https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementInViewport)(TestObject, int, com.kms.katalon.core.model.FailureHandling) “Link: [https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementInViewport](https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementInViewport)(TestObject, int, com.kms.katalon.core.model.FailureHandling)”)**([TestObject](https://api-docs.katalon.com/TestObject.html "Link: https://api-docs.katalon.com/TestObject.html") to, int timeOut, [FailureHandling](https://api-docs.katalon.com/com/kms/katalon/core/model/FailureHandling.html "Link: https://api-docs.katalon.com/com/kms/katalon/core/model/FailureHandling.html") flowControl)  
(there’s also **[verifyElementVisibleInViewport]([https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementVisibleInViewport](https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementVisibleInViewport)(TestObject, int, com.kms.katalon.core.model.FailureHandling) “Link: [https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementVisibleInViewport](https://api-docs.katalon.com/com/kms/katalon/core/webui/keyword/WebUiBuiltInKeywords.html#verifyElementVisibleInViewport)(TestObject, int, com.kms.katalon.core.model.FailureHandling)”)**([TestObject](https://api-docs.katalon.com/TestObject.html "Link: https://api-docs.katalon.com/TestObject.html") to, int timeOut, [FailureHandling](https://api-docs.katalon.com/com/kms/katalon/core/model/FailureHandling.html) flowControl), but it is deprecated).  
I needed to shorten the timeout for verifyElementVisible (it always defaulted to 30 seconds). I could have used verifyElementPresent, but it isn’t exactly the same.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 6, 2018, 2:03pm UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124/3 "2018-04-06T14:03:16Z")

</div>

Hi Mate

Why not waitForElementVisible?

My guess is, the documentation error was likely due to a copy/paste error from this method.

---

<div class="post-metadata">

**Author:** ![Mate\_Mrse](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mate_mrse/32/345_2.png) [@Mate\_Mrse](https://forum.katalon.com/u/Mate_Mrse)\
**Post date:** [April 6, 2018, 2:23pm UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124/4 "2018-04-06T14:23:01Z")

</div>

Hi Russ  
My AUT sometimes has a popup (actually, it is an iframe), but more often than not it is not present. If it is present, I want to fill some combo boxes and submit.  
But, since this usually happens only on the first test run, I didn’t want to use any waits, to shorten the run time.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [April 6, 2018, 2:31pm UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124/5 "2018-04-06T14:31:54Z")

</div>

“Random popups”. Great.

Perhaps suggest to the developers a “no notifications” mode so testing can be conducted again the AUT in a more rigorous manner.

---

<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:** [September 19, 2018, 1:23pm UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124/6 "2018-09-19T13:23:56Z")

</div>

The documentation error of WebUI.verifyElementVisible() is annoying people.

- [http://forum.katalon.com/discussion/comment/22834#Comment\_22834](http://forum.katalon.com/discussion/comment/22834#Comment_22834)

@Katalon team

Please correct the documentation at [https://docs.katalon.com/display/KD/[WebUI]+Verify+Element+Visible](https://docs.katalon.com/display/KD/%5BWebUI%5D+Verify+Element+Visible)

The doc says 2nd argument is required as int timeout; but actually not.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [November 2, 2019, 4:42am UTC](https://forum.katalon.com/t/documentation-error-webui-verify-element-visible/10124/7 "2019-11-02T04:42:54Z")

</div>

Closed on November 2, 2019, 4:42am UTC


