Test Cases FAILED because (of) Unable to click on object

I am trying to click on particular icon on the webpage but I am getting an error like “[FAILED] - Test Cases/LoginLogOut FAILED because (of) Unable to click on object ‘Object Repository/Page_Bids And Tenders 3.0/a_Logout’ (Root cause: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
Command duration or timeout: 0 milliseconds)”
I have added action Wait for Element Visible but, still getting the same error. Also, I have tried with Xpath. For the details, please see attached screenshot.
Can somebody please help me with this issue?


1 Like

Sorry I forgot to mention that I am executing this with Katlon 5.3.0 and tried with different browsers like IE, Chrome and Firefox with latest version.

Does this only happen in your headless browser? By default the browser size (viewport) is not very large, so even though it can be found, it’s not really “visible” nor “clickable”. Try adding Set View Port Size to a larger size.

Before clicks use “Scroll To Element” on the same element you want to click

1 Like