# WebUI.sendKeys() should accept an org.openqa.selenium.Keys argument

**URL:** <https://forum.katalon.com/t/webui-sendkeys-should-accept-an-org-openqa-selenium-keys-argument/27991>\
**Category:** Feature Request\
**Tags:** feature-request, tracked-on-github, katalon-studio\
**Created:** [June 18, 2019, 4:29am UTC](https://forum.katalon.com/t/webui-sendkeys-should-accept-an-org-openqa-selenium-keys-argument/27991 "2019-06-18T04:29:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [June 18, 2019, 4:29am UTC](https://forum.katalon.com/t/webui-sendkeys-should-accept-an-org-openqa-selenium-keys-argument/27991/1 "2019-06-18T04:29:35Z")

</div>

Both of the current SendKeysKeyword classes should contain a method signature of:

`sendKeys(TestObject to, FailureHandling flowControl, java.lang.CharSequence... keysToSend)`

This would reflect how webdriver does it, and would accept both a string of characters (obviously), but also a `org.openqa.selenium.Keys` argument.

This is in attempt to resolve the following issue:

> [@How to Press Enter with WebUI?](http://forum.katalon.com/t/how-to-press-enter-with-webui/10950):
>
> Hello, im totally new to automation and to katalon, so im sorry if this is a well known question. So, i made a script which: Open Google Write anything Press Enter When pressing enter, there are hella million ways according to google to make it press enter, also found several solutions here, but none of them worked for me, here is why. using katalon studio i was able to enter this: WebUI.sendKeys(findTestObject(‘Tutorial/Page\_Google/input\_q’), Keys.chord(Keys.ENTER)) It does work, however…

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [December 16, 2019, 1:27pm UTC](https://forum.katalon.com/t/webui-sendkeys-should-accept-an-org-openqa-selenium-keys-argument/27991/2 "2019-12-16T13:27:29Z")

</div>

> <https://github.com/katalon-studio/katalon-studio/issues/243>

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [December 16, 2019, 1:28pm UTC](https://forum.katalon.com/t/webui-sendkeys-should-accept-an-org-openqa-selenium-keys-argument/27991/3 "2019-12-16T13:28:06Z")

</div>


