Element Not Visible

Hi,
I am currently running tests on the web. I have a drop-down menu with the list of All Associations. Whenever I am running these tests it is failing to select the specific Association. It would be very helpful if someone can help me with this issue.

10-29-2018 04:44:47 PM - [FAILED] - Unable to click on object ‘Object Repository/Single Login/Main_Menu_Test Folder/Page_Properties/Page_Edit One Day Codes/Page_Edit One Day Codes/select_All’ (Root cause: org.openqa.selenium.ElementNotVisibleException: element not visible

(Session info: chrome=70.0.3538.77)

(Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 0 milliseconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘FPFZNH2’, ip: ‘172.30.4.100’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_102’

Driver info: com.kms.katalon.selenium.driver.CChromeDriver

Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.35.528161 (5b82f2d2aae0ca…, userDataDir: C:\Users\BVISWA~1\AppData\L…}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 70.0.3538.77, webStorageEnabled: true}

Session ID: 226ee6d78a6c83f72b6a5e393636e5c0)

10-29-2018 04:44:47 PM - [END] - End action : click

10-29-2018 04:44:47 PM - [FAILED] - Test Cases/Main_Menu_Test case/TC_Properties FAILED because (of) Unable to click on object ‘Object Repository/Single Login/Main_Menu_Test Folder/Page_Properties/Page_Edit One Day Codes/Page_Edit One Day Codes/select_All’ (Root cause: org.openqa.selenium.ElementNotVisibleException: element not visible

(Session info: chrome=70.0.3538.77)

(Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 0 milliseconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘FPFZNH2’, ip: ‘172.30.4.100’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_102’

Driver info: com.kms.katalon.selenium.driver.CChromeDriver

Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.35.528161 (5b82f2d2aae0ca…, userDataDir: C:\Users\BVISWA~1\AppData\L…}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 70.0.3538.77, webStorageEnabled: true}

Session ID: 226ee6d78a6c83f72b6a5e393636e5c0)

I seen the same question from other person and he mentioned using SelectOptionByIndex worked but it didn’t work for me.

Any Help would really be appreciated.

Thank
Bharati

Could you please show your test case code? I want to know what you do after WebUI.navigateToUrl() and before WebUI.click(). Do you do something to wait for the web page is loaded completely?

WebUI.openBrowser('')WebUI.nagivateToUrl(  .... url ... )// you should make sure the page is loaded before clicking a element.// what are you doing to ensure the element is present?WebUI.click(findTestObject(    'Object Repository/Single Login/Main_Menu_Test Folder/Page_Properties/Page_Edit One Day Codes/Page_Edit One Day Codes/select_All'))