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

**URL:** <https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [February 3, 2022, 3:16am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193 "2022-02-03T03:16:40Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![eshu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/eshu/32/16104_2.png) [@eshu](https://forum.katalon.com/u/eshu)\
**Post date:** [February 3, 2022, 3:16am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/1 "2022-02-03T03:16:40Z")

</div>

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._"

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/7/6/766e9c5129f22303d1c9102b2ad1adb9b2c70b35.png)

---

<div class="post-metadata">

**Author:** ![chrisstu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chrisstu/32/18464_2.png) [@chrisstu](https://forum.katalon.com/u/chrisstu)\
**Post date:** [February 7, 2022, 9:49am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/2 "2022-02-07T09:49:07Z")

</div>

Hi Eshu,

Could you provide more info? Kindly refer to [[TIP] How To Help Us Help You!](http://forum.katalon.com/t/tip-how-to-help-us-help-you/12919)

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [February 7, 2022, 8:23pm UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/3 "2022-02-07T20:23:14Z")

</div>

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:

> **[Sample Custom Keywords](https://docs.katalon.com/katalon-studio/docs/sample-custom-keywords.html)**
>
> Since Katalon Studio 5.4 When creating a New Custom Keyword, you have the options to generate sample custom keywords used for either Web, Mobile or API testing. They provide a...

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [February 7, 2022, 8:31pm UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/4 "2022-02-07T20:31:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VasilievIM](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vasilievim/32/16104_2.png) [@VasilievIM](https://forum.katalon.com/u/VasilievIM)\
**Post date:** [February 10, 2022, 7:46am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/5 "2022-02-10T07:46:57Z")

</div>

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](https://europe1.discourse-cdn.com/katalon/original/3X/7/a/7a11cd3f07bbf0488297f79b5171aed59e4b8d5f.png)

But now it posts in text field.

---

<div class="post-metadata">

**Author:** ![VasilievIM](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vasilievim/32/16104_2.png) [@VasilievIM](https://forum.katalon.com/u/VasilievIM)\
**Post date:** [February 10, 2022, 7:54am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/6 "2022-02-10T07:54:41Z")

</div>

In additional:

screen-1:

 ![katalon_hWeFe6b9N1](https://europe1.discourse-cdn.com/katalon/original/3X/b/7/b7a38d02b96b4bd922d023a372ef3592a82dccec.png)

screen-2:  
here it is:

 ![TOTALCMD_vYgkLlp4jZ](https://europe1.discourse-cdn.com/katalon/original/3X/c/6/c6001c505e44121d3649923b732c4330b09116d0.png)

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

Please help.

---

<div class="post-metadata">

**Author:** ![cdapitanon](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/cdapitanon/32/19310_2.png) [@cdapitanon](https://forum.katalon.com/u/cdapitanon)\
**Post date:** [February 14, 2022, 7:06am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/7 "2022-02-14T07:06:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VasilievIM](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vasilievim/32/16104_2.png) [@VasilievIM](https://forum.katalon.com/u/VasilievIM)\
**Post date:** [February 14, 2022, 8:43am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/9 "2022-02-14T08:43:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [February 14, 2022, 3:54pm UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/10 "2022-02-14T15:54:57Z")

</div>

@ThanhTo Is this something you can resolve?

---

<div class="post-metadata">

**Author:** ![joost.degeyndt](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joost.degeyndt/32/15366_2.png) [@joost.degeyndt](https://forum.katalon.com/u/joost.degeyndt)\
**Post date:** [February 14, 2022, 5:59pm UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/11 "2022-02-14T17:59:06Z")

</div>

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](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))
```

---

<div class="post-metadata">

**Author:** ![joost.degeyndt](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joost.degeyndt/32/15366_2.png) [@joost.degeyndt](https://forum.katalon.com/u/joost.degeyndt)\
**Post date:** [February 14, 2022, 6:04pm UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/12 "2022-02-14T18:04:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VasilievIM](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/vasilievim/32/16104_2.png) [@VasilievIM](https://forum.katalon.com/u/VasilievIM)\
**Post date:** [February 15, 2022, 2:49am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/13 "2022-02-15T02:49:16Z")

</div>

**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/](https://chromedriver.storage.googleapis.com/index.html?path=98.0.4758.80/)

---

<div class="post-metadata">

**Author:** ![joost.degeyndt](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joost.degeyndt/32/15366_2.png) [@joost.degeyndt](https://forum.katalon.com/u/joost.degeyndt)\
**Post date:** [February 15, 2022, 7:36am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/14 "2022-02-15T07:36:59Z")

</div>

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](https://bugs.chromium.org/p/chromedriver/issues/detail?id=4035&sort=-id)

---

<div class="post-metadata">

**Author:** ![joost.degeyndt](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joost.degeyndt/32/15366_2.png) [@joost.degeyndt](https://forum.katalon.com/u/joost.degeyndt)\
**Post date:** [February 16, 2022, 8:45am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/15 "2022-02-16T08:45:29Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![Dan\_Bown](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dan_bown/32/20464_2.png) [@Dan\_Bown](https://forum.katalon.com/u/Dan_Bown)\
**Post date:** [February 16, 2022, 11:47am UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/16 "2022-02-16T11:47:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joost.degeyndt](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joost.degeyndt/32/15366_2.png) [@joost.degeyndt](https://forum.katalon.com/u/joost.degeyndt)\
**Post date:** [February 16, 2022, 1:06pm UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/17 "2022-02-16T13:06:44Z")

</div>

> [@Dan\_Bown](#):
>
> - your browser version (open Settings → About)
> - Navigate t

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

```

---

<div class="post-metadata">

**Author:** ![Dan\_Bown](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dan_bown/32/20464_2.png) [@Dan\_Bown](https://forum.katalon.com/u/Dan_Bown)\
**Post date:** [February 16, 2022, 1:13pm UTC](https://forum.katalon.com/t/import-org-openqa-selenium-keys-as-keys-does-not-seem-to-be-working/62193/18 "2022-02-16T13:13:38Z")

</div>

Good stuff - glad to hear it’s working
