# Headless testing on Chrome browser fails few times for no reason

**URL:** <https://forum.katalon.com/t/headless-testing-on-chrome-browser-fails-few-times-for-no-reason/40113>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [February 20, 2020, 10:09am UTC](https://forum.katalon.com/t/headless-testing-on-chrome-browser-fails-few-times-for-no-reason/40113 "2020-02-20T10:09:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshar.a](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@akshar.a](https://forum.katalon.com/u/akshar.a)\
**Post date:** [February 20, 2020, 10:09am UTC](https://forum.katalon.com/t/headless-testing-on-chrome-browser-fails-few-times-for-no-reason/40113/1 "2020-02-20T10:09:24Z")

</div>

Hi there… I have seen that when I select headless testing on Chrome browser it fails few times for no reason. Where as normal execution with the Browser opened it works fine. Please provide solution

---

<div class="post-metadata">

**Author:** ![hpulsford](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hpulsford/32/2985_2.png) [@hpulsford](https://forum.katalon.com/u/hpulsford)\
**Post date:** [February 24, 2020, 10:46am UTC](https://forum.katalon.com/t/headless-testing-on-chrome-browser-fails-few-times-for-no-reason/40113/2 "2020-02-24T10:46:29Z")

</div>

There are many things that could cause tests to fail in headless and pass in head mode. The most likely cause is timing. When the tests fail, what kind of error trace are you receiving? Please make sure that wherever there is alot of noise on a page upon surfacing that you have the appropriate waitFor… implemented for that page to be in a state where every element you need is ready for the action you want to perform. In headless things tend to run faster as the driver doesnt have to load a browser GUI meaning you can bypass all the time a real browser takes to load CSS, JavaScript and open and render HTML.

> **[\[WebUI\] Wait For Element Visible](https://docs.katalon.com/katalon-studio/docs/webui-wait-for-element-visible.html#description)**
>
> Description Wait until the given web element is visible within the timeout. Parameters Param Param Type Mandatory Description to TestObject Required Represent a web element. timeOut  int  Required Maximum period...

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [February 23, 2021, 10:30am UTC](https://forum.katalon.com/t/headless-testing-on-chrome-browser-fails-few-times-for-no-reason/40113/3 "2021-02-23T10:30:48Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [February 22, 2022, 8:23am UTC](https://forum.katalon.com/t/headless-testing-on-chrome-browser-fails-few-times-for-no-reason/40113/4 "2022-02-22T08:23:36Z")

</div>



---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [February 22, 2022, 8:34am UTC](https://forum.katalon.com/t/headless-testing-on-chrome-browser-fails-few-times-for-no-reason/40113/5 "2022-02-22T08:34:28Z")

</div>


