# Katalon not inputting data in Chrome but works in Firefox

**URL:** <https://forum.katalon.com/t/katalon-not-inputting-data-in-chrome-but-works-in-firefox/10496>\
**Category:** Bug Report\
**Tags:** katalon-recorder\
**Created:** [April 24, 2018, 2:12pm UTC](https://forum.katalon.com/t/katalon-not-inputting-data-in-chrome-but-works-in-firefox/10496 "2018-04-24T14:12:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan2](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@Jonathan2](https://forum.katalon.com/u/Jonathan2)\
**Post date:** [April 24, 2018, 2:12pm UTC](https://forum.katalon.com/t/katalon-not-inputting-data-in-chrome-but-works-in-firefox/10496/1 "2018-04-24T14:12:00Z")

</div>

I recorded a flow using Chrome’s Katalon extension recorder. Playing it worked initially, however, something changed and now when I play the test, it won’t input certain values to a text box. Some text box inputs work fine, whereas, some do not. I loaded the same script in Firefox and it works fine.

Any ideas on what may have changed to prevent this from working in Chrome?

---

<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:** [April 24, 2018, 5:20pm UTC](https://forum.katalon.com/t/katalon-not-inputting-data-in-chrome-but-works-in-firefox/10496/2 "2018-04-24T17:20:07Z")

</div>

There was a change yesterday but we’ve reverted it already after a few hours. May I know the version you are using?

---

<div class="post-metadata">

**Author:** ![Julie\_Mortlock](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@Julie\_Mortlock](https://forum.katalon.com/u/Julie_Mortlock)\
**Post date:** [August 10, 2018, 1:00pm UTC](https://forum.katalon.com/t/katalon-not-inputting-data-in-chrome-but-works-in-firefox/10496/3 "2018-08-10T13:00:29Z")

</div>

I’m using version 5.6 and I have scripts that run in Firefox but not Chrome. One such script can’t run in Chrome without me scrolling to the element but I was able to get it to work by doing that. The script below cannot select the value of Nursing in the program finder on the page in Chrome, but it can in Firefox. Thoughts? It’s also saying the element is not selected (when I run in Firefox), but it clearly is. I added some delays to see if that makes a difference but no joy.

WebUI.openBrowser(’’)

WebUI.deleteAllCookies()

WebUI.navigateToUrl(GlobalVariable.baseurl + ‘www.snhu.edu’)

WebUI.waitForPageLoad(20)

WebUI.selectOptionByLabel(findTestObject(‘Page\_Southern New Hampshire Univers/select\_Select a Degree LevelBa (1)’), 'Bachelor\‘s’,

```
true)

```

WebUI.delay(2)

WebUI.selectOptionByLabel(findTestObject(‘Object Repository/Page\_Southern New Hampshire Univers/select\_All CategoriesAccelerat’),

```
'Nursing', true)

```

WebUI.delay(1)

WebUI.click(findTestObject(‘Page\_Southern New Hampshire Univers/input\_main\_0masthead\_0programf (1)’))

WebUI.delay(3)

not\_run: WebUI.verifyElementChecked(findTestObject(‘HomePage Program Finder/Page\_Program Finder SNHU/label\_Bachelors’),

```
2)

```

WebUI.verifyElementNotChecked(findTestObject(‘HomePage Program Finder/Page\_Program Finder SNHU/label\_Bachelors’), 2)

WebUI.verifyElementClickable(findTestObject(‘HomePage Program Finder/Page\_Program Finder SNHU/label\_Bachelors’), FailureHandling.STOP\_ON\_FAILURE)

---

<div class="post-metadata">

**Author:** ![Tilak\_S](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@Tilak\_S](https://forum.katalon.com/u/Tilak_S)\
**Post date:** [September 4, 2018, 4:06pm UTC](https://forum.katalon.com/t/katalon-not-inputting-data-in-chrome-but-works-in-firefox/10496/4 "2018-09-04T16:06:48Z")

</div>

I had the same issue for Katalon Studio. This issue is present because Chrome handles elements differently compared to Firefox. There are two ways to fix it:

A] Use WebUI.delay(3) before using the WebUI.setText  
B] Use WebUI.waitForElementVisible() before using the WebUI.setText

Both the statements work very well on both Chrome and Firefox.

---

<div class="post-metadata">

**Author:** ![Julie\_Mortlock](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@Julie\_Mortlock](https://forum.katalon.com/u/Julie_Mortlock)\
**Post date:** [September 13, 2018, 6:42pm UTC](https://forum.katalon.com/t/katalon-not-inputting-data-in-chrome-but-works-in-firefox/10496/5 "2018-09-13T18:42:48Z")

</div>

Thank you!
