"import org.openqa.selenium.Keys as Keys" does not seem to be working

Hello, I’m trying to use the sendkeys function, but this error keeps showing up. Any ideas on how to fix it?

This is the error message:
Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found."

Hi Eshu,

Could you provide more info? Kindly refer to [TIP] How To Help Us Help You!

If you check any of the non-Katalon libraries, they all state the same. A non-Katalon library are any of the imports that do not have “Katalon” in it, like:
com.kms.katalon.core...

It only means that Katalon does not have the source code or the Javadoc (documentation at the top of the various methods written in the Java programming language). It’s a notice, not an error.

To see this in action, you can write your own documentation above your methods when you write any Keywords. Notice the form of starting the Javadoc in the below link:

As for your **sendKeys" error, we need more information. Maybe even your code to see how you are trying to do it.

I have the same problem. Suddenly. sendKeys really not working. I think because of Chrome 98 version. In earlier version sendKeys work correclty. Test case source code was not changed.

See how it works now. TAB & Enter (to focus to the button and click it)
eaWso7Pgrq

But now it posts in text field.

In additional:

screen-1:

screen-2:
here it is:

But it still works on Chrome 97. In Chrome 98 doesnt ((

Please help.

Encounter the same issue. Send keys did not works in lastest chrome version.

Could you take attention pls. This critical bug is confirmed by other users.

@ThanhTo Is this something you can resolve?

In our tests we also face this. We have a custom keyword that we wrote to do a “CTRL+A” followed by a “BACK_SPACE” (see below) because the regular WebUI.clearText() did not work (e.g. in autocomplete filter inputs). Now this blocks a lot of tests.

Does remind me a bit of this: “SendKeys Keys.ENTER on Firefox add extra characters” https://github.com/katalon-studio/katalon-studio/issues/243
We did not execute this keyword on FireFox for that reason, but now similar issue seems to popup in Chrome. This is blocking us as it fails a lot of tests suddenly.
We do use the latest drivers as we pass on argument “-webui.autoUpdateDrivers=true”.

	@Keyword(keywordObject = "Actions")
static void clearTextDataTestCtrlABackspace(String kebabCasingDataTestValue) {
	TestObject clearTextTargetTestObject = new TestObject()
	clearTextTargetTestObject.addProperty('xpath', ConditionType.EQUALS, '//*[@data-test=\'' + kebabCasingDataTestValue + '\']')
	WebUI.waitForElementVisible(clearTextTargetTestObject, 5, FailureHandling.OPTIONAL)
	WebUI.sendKeys(clearTextTargetTestObject, Keys.chord(Keys.CONTROL, 'a'))
	WebUI.sendKeys(clearTextTargetTestObject, Keys.chord(Keys.BACK_SPACE))

Update: found originaly reported here https://bugs.chromium.org/p/chromedriver/issues/detail?id=3999

Link to Download ChromeDriver 98 with fixed sendKeys bug:

Resolved issue 2269: Impossible to use non-BMP characters (code points above U+FFFF) [Pri-3]

https://chromedriver.storage.googleapis.com/index.html?path=98.0.4758.80/

1 Like

If I read it well, there is an intend to fix it by tomorrow 16/02/2022 in the version 98:
https://bugs.chromium.org/p/chromedriver/issues/detail?id=4035&sort=-id

1 Like

The issue seems fixed at chromedrive (see above links) in version 98.0.4758.102, however, the “update webdriver” functionality within Katalon doesn’t seem to pick up this version. I can see it acknowledges LATEST_RELEASE_98 is 98.0.4758.102, yet the version remains 98.0.4758.80, so our tests are still failing due to this.

How does this get rectified?

Updating web driver...

[INFO] Using WebDriverManager to resolve chrome
[INFO] Please answer the following questionnaire based on your experience with WebDriverManager. Thanks a lot!
[INFO] ====> http://tiny.cc/wdm-survey <====
[DEBUG] Running command on the shell: [wmic.exe, datafile, where, name='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe', get, Version, /value]
[DEBUG] Result: Version=98.0.4758.82
[DEBUG] Latest version of chromedriver according to https://chromedriver.storage.googleapis.com/LATEST_RELEASE_98 is 98.0.4758.102
[DEBUG] Getting driver version for chrome98 from online versions.properties
[INFO] Using chromedriver 98.0.4758.80 (since Chrome 98 is installed in your machine)
[INFO] Reading https://chromedriver.storage.googleapis.com/ to seek chromedriver
[DEBUG] Driver to be downloaded chromedriver 98.0.4758.80
[INFO] Downloading https://chromedriver.storage.googleapis.com/98.0.4758.80/chromedriver_win32.zip
[INFO] Extracting binary from compressed file chromedriver_win32.zip
[DEBUG] Overriding former binary C:\Katalon\Katalon_Studio_Windows_64-8.0.5\configuration\resources\drivers\chromedriver_win32\chromedriver.exe
[INFO] Driver location: C:\Katalon\Katalon_Studio_Windows_64-8.0.5\configuration\resources\drivers\chromedriver_win32\chromedriver.exe

You could try to manually update the driver:

  1. Note your browser version (open Settings -> About)
  2. Navigate to Chromedriver repository online and download desired version
  3. Unzip driver and add to Katalon ‘drivers’ folder, wherever that may be - mine is here
    C:\Work\Katalon\Katalon_Studio_Windows_64-8.0.5\configuration\resources\drivers\chromedriver_win32

Cheers Dan

Thanks for your feedback @Dan_Bown. I know this is a solution for running the tests locally, but since we use test executions via a pipeline & I don’t have access to the agent where Katalon is installed this solution is not really adequate.

But in the meantime, I noticed the issue is fixed.
A new “update webdriver” does properly download the latest 98.0.4758.102 version!

DEBUG] Result: Version=98.0.4758.82
[DEBUG] Latest version of chromedriver according to https://chromedriver.storage.googleapis.com/LATEST_RELEASE_98 is 98.0.4758.102
[DEBUG] Getting driver version for chrome98 from online versions.properties
[INFO] Using chromedriver 98.0.4758.102 (since Chrome 98 is installed in your machine)
[INFO] Reading https://chromedriver.storage.googleapis.com/ to seek chromedriver
[DEBUG] Driver to be downloaded chromedriver 98.0.4758.102
[INFO] Downloading https://chromedriver.storage.googleapis.com/98.0.4758.102/chromedriver_win32.zip
[INFO] Extracting binary from compressed file chromedriver_win32.zip
[DEBUG] Overriding former binary C:\Katalon\Katalon_Studio_Windows_64-8.0.5\configuration\resources\drivers\chromedriver_win32\chromedriver.exe
[INFO] Driver location: C:\Katalon\Katalon_Studio_Windows_64-8.0.5\configuration\resources\drivers\chromedriver_win32\chromedriver.exe

Good stuff - glad to hear it’s working