Skip to end of metadata
Go to start of metadata

 There are many cases which can happen to an element. These quick tips and tricks will help you to troubleshoot some common issues and how to handle them as a workaround solution:

1. "com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id ... not found":

The element can't be detected on current page due Xpath or CSS selector is incorrect

Solution: Refer here

 

2. "selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted"

  • The element is hidden and is not in ready state.
  • The element is not visible yet after current page is loaded.

Solution:
Add 'Wait For Element Visible' step before the step having this issue, e.g:

WebUI.openBrowser('http://demoaut.katalon.com') 
WebUI.waitForElementVisible(findtestObject('btn_Login'), 30) 
WebUI.click(findTestObject('btn_Login')) 

 

3. "Element is not currently interactable and may not be manipulated"

  • Usually happen on 'Set Text' keyword where input field is read-only.
  • The element is not visible.
  • The element requires some conditions to be displayed.

Solutions: One of below solutions

  • Wait until the element is visible
  • Set value to its directly using Javascript:
import com.kms.katalon.core.webui.common.WebUiCommonHelper
 
WebElement element = WebUiCommonHelper.findWebElement(findTestObject('your/object'),30)
WebUI.executeJavaScript("arguments[0].value='Your Value'", Arrays.asList(element))


4. "Element is not clickable at point (x,x). Other element would receive the click...":

  • Happens mostly on Chrome (source).
  • The element is clickable but there is a spinner/overlay on top of it.

Solution:

Click on the element using Javascript instead:  

import com.kms.katalon.core.webui.common.WebUiCommonHelper
 
WebElement element = WebUiCommonHelper.findWebElement(findTestObject('your/object'),30)
WebUI.executeJavaScript("arguments[0].click", Arrays.asList(element))

 

 

  • No labels