I can't click on label a Often!


#1

erro code is :
Test Cases/learnKatalonWebTest FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Page_/a_Sign Up’ (Root cause: org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (1320, 118). Other element would receive the click:

what can i do?
I’ve nearly set chrome webdriver to maximize.


#2

The system is telling you that something else on the page is going to receive your click. You could try adding a wait command before issuing the click:

In future, please ensure you post to the correct section of the forum (you posted this to the bug section for the wrong product and I moved it here).


#3

As you can see, I’ve added the waiting code, but I still can’t click on label a often.
waiting code:
WebUI.navigateToUrl(‘http://192.168.xxx.xxx/project/about.html’)
WebUI.waitForElementPresent(findTestObject(‘Page_/a_Sign Up’), 30)


#4

We need more information. Follow the advice posted here and we will try to help you further:


#5

Try using JavaScript executor

WebElement element = WebUiCommonHelper.findWebElement(findTestObject(‘Page_/a_Sign Up’), 30)

WebUI.executeJavaScript(“arguments[0].click()”, Arrays.asList(element))

or check, that the label is in viewpoint if it not in viewpoint try to scroll and click


#6

Try this:

WebUI.waitForElementVisible(object, 30)
WebUI.delay(1)
WebUI.click(object) .

The see the report and look if the element was visible o not. Maybe it is not visible also


#7

I agree with you. I’ve maximized the chrome.


#8

May I have your email address? i will send webpage to you .


#9

i‘ll try again. thank you very much.


#10

thanks , According to the way you gave me, I can already click on label a. Can you tell me why?


#11

Hi @1992691699

Sometimes the element is not visible therefore the click will not be performed successfully. A common solution is to wait for it to become visible, or wait for the page to be fully loaded. That explains why @francoarebuffi’s solution works for you.

Regards !