# Headless Count (Chrome) Can launch the Chrome successfully but when we give Set Text(Login) or Password , its not working followed by the whole code

**URL:** <https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734>\
**Category:** Web Testing\
**Tags:** headless, chrome, api-testing, katalon-studio\
**Created:** [April 24, 2019, 7:48am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734 "2019-04-24T07:48:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikkili.rahul.tej](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mikkili.rahul.tej](https://forum.katalon.com/u/mikkili.rahul.tej)\
**Post date:** [April 24, 2019, 7:48am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/1 "2019-04-24T07:48:47Z")

</div>

Same Scenario but different issue for me …

Version :  
Katalon Studio  
Version: 5.10.1  
Build: 1

Steps to Produce : Chrome Headless Count

Can launch the Chrome successfully but when we give Set Text(Login) or Password , its not working followed by the whole code .

**below is the error Message**

04-24-2019 01:28:15 PM setText(findTestObject(“Object Repository/Page\_SAP Commissions/input\_Username\_username”), “Mikky”)

Elapsed time: 1m - 3.840s

Unable to set text ‘Mikky’ of object ‘Object Repository/Page\_SAP Commissions/input\_Username\_username’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page\_SAP Commissions/input\_Username\_username’ located by ‘By.xpath: //input[@name=‘username’]’ not found)

Note:The Same Code working fine when using default as Chrome browser.

Thanks in Advance

With Regards,  
Mikky …!

---

<div class="post-metadata">

**Author:** ![ehernandez](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@ehernandez](https://forum.katalon.com/u/ehernandez)\
**Post date:** [April 24, 2019, 3:59pm UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/2 "2019-04-24T15:59:33Z")

</div>

I think you need to increase your headless mode window display. check out this link, [Katalon Unable to resize windows size more than 1044x788](http://forum.katalon.com/t/katalon-unable-to-resize-windows-size-more-than-1044x788/12322/10?u=ehernandez)

---

<div class="post-metadata">

**Author:** ![mikkili.rahul.tej](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mikkili.rahul.tej](https://forum.katalon.com/u/mikkili.rahul.tej)\
**Post date:** [April 25, 2019, 2:33am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/3 "2019-04-25T02:33:31Z")

</div>

Hi Ehernandez,

Thanq for the Response …

i had gone thorough ur link , in Headless count can launch Chrome successfully but Set Text is Not working .

issue is from Client side i think so …let them come back with new build …if possible we can take this as high priority .

Thanq …

With Regards,  
Mikky …!

---

<div class="post-metadata">

**Author:** ![Lakshminarayana\_D](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lakshminarayana\_D](https://forum.katalon.com/u/Lakshminarayana_D)\
**Post date:** [April 25, 2019, 5:28am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/4 "2019-04-25T05:28:03Z")

</div>

Hi Mikky, give a try by adding wait statement just before setText.

`WebUI.waitForElementPresent(findTestObject('Object Repository/Page_SAP Commissions/input_Username_username'), 5, FailureHandling.CONTINUE_ON_FAILURE)`

---

<div class="post-metadata">

**Author:** ![mikkili.rahul.tej](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mikkili.rahul.tej](https://forum.katalon.com/u/mikkili.rahul.tej)\
**Post date:** [April 25, 2019, 6:16am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/5 "2019-04-25T06:16:53Z")

</div>

Tried already still the same issue

---

<div class="post-metadata">

**Author:** ![Lakshminarayana\_D](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lakshminarayana\_D](https://forum.katalon.com/u/Lakshminarayana_D)\
**Post date:** [April 25, 2019, 6:48am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/6 "2019-04-25T06:48:49Z")

</div>

Is the “waitForElementPresent” step failed ?  
Check the test report which will have a screenshot at the failed step… whether the page is really loaded or not, or what else is happening. In general headless execution is little faster compared to GUI.

---

<div class="post-metadata">

**Author:** ![mikkili.rahul.tej](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mikkili.rahul.tej](https://forum.katalon.com/u/mikkili.rahul.tej)\
**Post date:** [April 25, 2019, 7:14am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/7 "2019-04-25T07:14:20Z")

</div>

The issue is from katalon side …they need to fix the issue …

The code is working fine for chrome but in headless count we are getting the issue at set text and whole code.So **alternatively i am using Firefox headless count which is working .**

Thanq …

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:49am UTC](https://forum.katalon.com/t/headless-count-chrome-can-launch-the-chrome-successfully-but-when-we-give-set-text-login-or-password-its-not-working-followed-by-the-whole-code/23734/8 "2022-08-08T07:49:23Z")

</div>

Archived on August 8, 2022, 7:49am UTC


