ElementNotVisibleException: element not visible

Hi
Ive tried:

  1. ScrollToElement
  2. using custom keyword (Unable to click on Object, Other Element Would receive click - Katalon Studio - Katalon Community)
  3. tested running in firefox, chrome and IE
  4. waitForElementNotPresent

None of the above worked. Pls help how I can make katalon click my element.

Thanks

Hi Hafiz,

it is hard to help you when we don’t have any additional info about your problem. Can you share a snippet of your source code and of the element you want to click?

Hi Marek

element I would like to click is input_btn (both):

//Elements in first page:

WebUI.selectOptionByValue(findTestObject(‘VT/Page_Personal/select_—Select From Destination0’), ‘62’, true)

WebUI.selectOptionByValue(findTestObject(‘VT/Page_Personal/select_—Select To Destination01-’), ‘63’, true)

WebUI.setText(findTestObject(‘VT/Page_Personal/textarea_Desc’), ‘test’)

WebUI.click(findTestObject(‘VT/Page_Personal/input_btn’))

WebUI.delay(10)

WebUI.getText(findTestObject(‘VT/Page_Personal/input_vcode’), FailureHandling.STOP_ON_FAILURE)

//Elements in second page (confirmation page):

WebUI.scrollToElement(findTestObject(‘VT/Page_Personal/input_btn’), 100)

WebUI.click(findTestObject(‘VT/Page_Personal/input_btn’))

error:

Unable to click on object ‘Object Repository/VT/Page_Personal/input_btn’ (Root cause: org.openqa.selenium.ElementNotInteractableException: Element could not be scrolled into view.

In object properties: When I click to detect object input_btn by xpath, katalon able to click first input_btn but not second input_btn in second page.

I meant source code of your web page.

 
 

I finally got it to work by changing the ‘detect object by’ selection