Troubleshooting common issues related to interacting with an element


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/troubleshooting-common-issues-related-to-interacting-with-an-element.html

Hi, is there something missing here? I used this but there was an error. I will be posting the link for the said error…

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

Here’s the topic link:

http://forum.katalon.com/t/katalon-test-scripts-executed-in-jenkins-did-not-finish-successfully-even-all-test-scripts-were-executed-jenkins-showing-spinner-only-no-error-displayed/27886

WebElement element = WebUiCommonHelper.findWebElement(findTestObject(‘Object Repository/edit mezzo/Page_C Dettaglio mezzo/span_Salva_btn-label float-left’),30)
WebUI.executeJavaScript(“arguments[0].click”, Arrays.asList(element))

I used this, but when I run the test the “click” step is skipped and goes to the next step

We are facing very similar issues as the element sometimes not loading . We used couple of options of delay but it works intermittently, on Debug mode it works fine.

Is there any concrete approach which will work always. Appreciate your response

Error -

Failed to click on the element with xPath[//div[@class=‘divTable’]//*[contains(.,‘Selena’) and contains(.,‘Blaze’)]//ancestor::div[@class=‘enrollment-group’]//ancestor::div[@class=‘box-header’]//input[@id=‘findPlan’]] after exausted attempts of 3 retries.