Error message in KS 7.8.0.rc - Unable to locate element: #katalon_only_element

Unable to locate element: #katalon_only_element
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'

Releavant log lines:

2020-10-30 12:19:14.350 INFO  c.k.k.core.webui.driver.DriverFactory    - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList="", isApplyToDesiredCapabilities=true }
[FINE] No subscribers registered for event class com.kms.katalon.core.event.TestingEvent
[FINE] No subscribers registered for event class org.greenrobot.eventbus.NoSubscriberEvent
      startBrowser maximizing browser window
      Navigating to login @ https://xxx
      Navigating to https://xxxxx
2020-10-30 12:19:16.191 ERROR c.k.k.c.w.d.KatalonSmartEventListener    - ❌ Unable to locate element: #katalon_only_element
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'

@Russ_Thomas

Does this happen on every test execution ? :thinking:

yes. :frowning:

1 Like

Is this on Chrome also ? I forgot to mention that Time Capsule is available for Chrome browser currently. If it’s on Chrome I’d need more information.

I bet is not on Chrome browser.
As far as i know @Russ_Thomas he is firefox addicted.
However it is still a valid issue even in this case (lack of documentation, unhandled exceptions and so on)

1 Like

No - I get different issues on Chrome but I’m not so concerned about that at this moment (Like @bionel said - I’m a FF guy).

FYI: Chrome complains about something to do with geckodriver (weird) right at the end of the test. But don’t get distracted by that - it might be me doing something stupid (likely).

The id #katalon_only-element is intriguing - I hope Katalon is not injecting stuff into the AUT (there’s enough to keep track of without that kind of thing to have worry about).

I also see this issue happening on chrome.
katalonVersion = 7.8.0.208
os = Windows 10 64bit

For me it happens consistently in an @BeforeTestCase where I execute a public static void logInAs(WebDriver driver, String authUser, String baseUrl, String appUrl, String language)
and specifically when I use the command driver.get(myAuthenticationUrlVariable)

It doesn’t fail my test case luckily, it just pollutes the logs. I cannot recall seeing this before 7.8.0.

Full relevant output log:

2020-12-07 11:34:23.517 INFO  c.k.k.core.webui.driver.DriverFactory    - browser = Chrome 87.0.4280.88
2020-12-07 11:34:23.518 INFO  c.k.k.core.webui.driver.DriverFactory    - platform = Windows 10
2020-12-07 11:34:23.519 INFO  c.k.k.core.webui.driver.DriverFactory    - seleniumVersion = 3.141.59
2020-12-07 11:34:23.520 INFO  c.k.k.core.webui.driver.DriverFactory    - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList="", isApplyToDesiredCapabilities=true }
2020-12-07 11:34:27.849 ERROR c.k.k.c.w.d.KatalonSmartEventListener    - ❌ no such element: Unable to locate element: {"method":"css selector","selector":"#katalon_only_element"}
  (Session info: headless chrome=87.0.4280.88)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '*********', ip: '***********', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 87.0.4280.88, chrome: {chromedriverVersion: 87.0.4280.88 (89e2380a3e36c..., userDataDir: C:\Users\**********\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:*******}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true}
Session ID: 997d8e202***************16ed4ba32
*** Element info: {Using=id, value=katalon_only_element}
2020-12-07 11:34:32.282 ERROR c.k.k.c.w.d.KatalonSmartEventListener    - ❌ no such element: Unable to locate element: {"method":"css selector","selector":"#katalon_only_element"}
  (Session info: headless chrome=87.0.4280.88)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'CLX0005', ip: '10.200.50.161', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 87.0.4280.88, chrome: {chromedriverVersion: 87.0.4280.88 (89e2380a3e36c..., userDataDir: C:\Users\*****\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:*****}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true}
Session ID: 997d8e202a********6c5f16ed4ba32
*** Element info: {Using=id, value=katalon_only_element}
2020-12-07 11:34:36.340 ERROR c.k.k.c.w.d.KatalonSmartEventListener    - ❌ no such element: Unable to locate element: {"method":"css selector","selector":"#katalon_only_element"}
  (Session info: headless chrome=87.0.4280.88)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'CLX0005', ip: '10.200.50.161', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 87.0.4280.88, chrome: {chromedriverVersion: 87.0.4280.88 (89e2380a3e36c..., userDataDir: C:\Users\*******\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:*****}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true}
Session ID: 997d8e************5f16ed4ba32
*** Element info: {Using=id, value=katalon_only_element}

I am experiencing this error in Chrome, Edge Chromium. I’m on the latest Katalon
Version 7.8.1. Build 208

FYI - Edge details
2020-12-10 17:52:36.455 INFO c.k.k.core.webui.driver.DriverFactory - browser = Edge Chromium 87
2020-12-10 17:52:36.456 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows 10
2020-12-10 17:52:36.456 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59

Chrome
2020-12-10 17:56:41.254 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 8f4de4b24cc83d734f17a13bf3d72425
2020-12-10 17:56:41.271 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 87.0.4280.88
2020-12-10 17:56:41.272 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows 10
2020-12-10 17:56:41.272 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59

Hello there, I have the same error on Katalon 7.8.1 whereas on 7.7 same test works perfectly fine.

WebUI.openBrowser(’’) -> goes fine

WebUI.navigateToUrl(my URL) -> navigates to expected URL but then stays there and does nothing, I have to manually kill the run, and I find this in console:
2020-12-29 08:51:51.176 ERROR c.k.k.c.w.d.KatalonSmartEventListener - :x: no such element: Unable to locate element: {“method”:“css selector”,“selector”:"#katalon_only_element"}
(Session info: chrome=87.0.4280.88)

Too bad I cannot use 7.8 new feature and I am stuck with 7.7 for now. Is 7.8 really working fine?

@yann.sautreuil.ext

We have released 7.8.2 which allows users to disable Time Capsule, can you try it out to see if that resolves the issue ?

I just downloaded and used 7.8.2 and ran my test successfully, without updating any setting time capsule or else. 7.8.2 seems to solve this issue for me at least, thanks.

1 Like

I can confirm v.7.8.2 also solved my issue from above. Thank you very much Katalon team!

1 Like