Element is clickable manually but Katalon saying element not interactable

Hello Team,

I have another question, The issue I am facing today is I am not able to click on an element using Katalon.

The element is shown on a Pop and by default the 1st Tab (Sign In ) is selected. I want to select the second tab (Sign Up )and do my validations but Katalon is not clicking on that element saying the element is not intractable.

Here is the screenshot of pop up (See the 2nd element Sign Up )

When the 1st tab (Sign In) is selected there are visible changes in the HTML :

01%20PM

And when 2nd Tab (Sign Up ) is selected then : (See class active is assigned to it)

18%20PM

Can you provide the exact error message you are getting in the logs?

Hello @Brandon_Hein

Below is the error I am getting now :

01-22-2019 02:29:21 PM click(findTestObject(“Page_testweb landing/a_Sign Up”))

Elapsed time: 1.039s

click(findTestObject(“Page_testweb landing /a_Sign Up”)) 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:53)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$3.call(Unknown Source)
at SignUp Using Valid Email Address.run(SignUp Using Valid Email Address:28)
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 TempTestCase1548196152735.run(TempTestCase1548196152735.groovy:22)


import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable

WebUI.openBrowser(’’)

WebUI.navigateToUrl(‘https://testweb.com’)

WebUI.maximizeWindow()

WebUI.click(findTestObject(‘Page_testweb landing/Sign in- Top’))

WebUI.click(findTestObject(‘Page_testweb landing /a_Sign Up’))

WebUI.setText(findTestObject(‘Page_testweb landing /input_Type your email_customer’), ‘thisisatestaddress@Gmail.com’)

WebUI.setEncryptedText(findTestObject(‘Page_testweb landing /input_Type a password_customer’), ‘eMxGV5P4A6KHQ5Ay0YA8kg==’)

WebUI.click(findTestObject(‘Page_testweb landing /input_Type a password_button’))

WebUI.closeBrowser()

According to your error:

Unable to click on object (Root cause: java.lang.IllegalArgumentException: Object is null)

there was a problem getting the Test Object defined by “Page_testweb landing /a_Sign Up” from the Object Repository.

Please ensure that this object exists in your Object Repository, and has the name and directory that you specified.

2 Likes

@Brandon_Hein Sorry for delay in reply. We have decided not to automate this scenario as of now because there is a Google Captcha thing that will block us in next step and we don’t want that to be removed even on test environment. Thanks for your help on this.