Getting an error when I run my test via Jenkins and Chrome 73.0.3683.75 in headless

read

#1

Operating System Windows Server 2012 64bit
Katalon Studio Version 6.0.5.4
Environment (for Web testing) Chrome 73.0.3683.75

Steps to reproduce
I run my tests via Jenkins using Chrome (headless) and incognito mode. With Chrome 72.0.3626.121 tests execute without problems, but with Chrome 73.0.3683.75 they run into error below because some object is not visible:

Error

[SEVERE]: Timed out receiving message from renderer: 10.000
[WARNING]: screenshot failed, retrying
[SEVERE]: Timed out receiving message from renderer: 10.000
2019-03-14 12:12:32.781 WARN c.k.k.c.w.h.s.WebUIScreenCaptor - Cannot take screenshot
2019-03-14 12:12:32.782 ERROR c.k.k.core.keyword.internal.KeywordMain - ? Unable to click on object ‘Object Repository/Track/Add.Log.Dialogue/Log.edit/input_project.edit’
2019-03-14 12:12:32.799 ERROR c.k.katalon.core.main.TestCaseExecutor - ? click(findTestObject(“Track/Add.Log.Dialogue/Log.edit/input_project.edit”)) FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Track/Add.Log.Dialogue/Log.edit/input_project.edit’
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:48)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$5.call(Unknown Source)
at MH_D1_Search_via_Dropdown_Compact.run(MH_D1_Search_via_Dropdown_Compact:74)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:331)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:322)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:293)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:227)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1552561776450.run(TempTestSuite1552561776450.groovy:35)

2019-03-14 12:12:32.802 ERROR c.k.katalon.core.main.TestCaseExecutor - ? Test Cases/MH_D1_Search_via_Dropdown_Compact FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Track/Add.Log.Dialogue/Log.edit/input_project.edit’
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:48)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$5.call(Unknown Source)
at MH_D1_Search_via_Dropdown_Compact.run(MH_D1_Search_via_Dropdown_Compact:74)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:331)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:322)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:293)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:227)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1552561776450.run(TempTestSuite1552561776450.groovy:35)

This only happens when I run tests via Jenkins if I run them locally on the server or on my computer they pass without errors. I also tried with changing chrome driver to the latest version, but I get the same error.


Getting an error when I run my test via Bamboo on Chrome (headless)
#2

@Anita, did your script wait for the test object to be loaded before clicking on it? Please check it again and use waitForElementVisible keyword if needed.
Regards.


#3

Hi,

Is your chrome browser opened properly?
Looks like that it’s not opened at all?


#4

@huynguyen Yes, it did wait for the object to be loaded, but it did not load, after that, the waitForElementClickable passed without error and the click failed.

Log snippet

2019-03-14 12:11:01.982 DEBUG t.MH_D1_Search_via_Dropdown_Compact - 25: waitForElementVisible(findTestObject(“Track/Add.Log.Dialogue/Log.edit/input_project.edit”), Wait30)
2019-03-14 12:11:32.530 WARN k.k.c.w.k.b.WaitForElementVisibleKeyword - Object ‘Object Repository/Track/Add.Log.Dialogue/Log.edit/input_project.edit’ is not visible after 30 second(s)
2019-03-14 12:11:32.531 DEBUG t.MH_D1_Search_via_Dropdown_Compact - 26: waitForElementClickable(findTestObject(“Track/Add.Log.Dialogue/Log.edit/input_project.edit”), Wait30)
2019-03-14 12:11:32.597 DEBUG t.MH_D1_Search_via_Dropdown_Compact - 27: click(findTestObject(“Track/Add.Log.Dialogue/Log.edit/input_project.edit”))
[1552561902.762][SEVERE]: Timed out receiving message from renderer: 10.000
[1552561902.763][WARNING]: screenshot failed, retrying
[1552561912.764][SEVERE]: Timed out receiving message from renderer: 10.000
[1552561922.767][SEVERE]: Timed out receiving message from renderer: 10.000
[1552561922.768][WARNING]: screenshot failed, retrying
[1552561932.768][SEVERE]: Timed out receiving message from renderer: 9.988
[1552561942.771][SEVERE]: Timed out receiving message from renderer: 10.000
[1552561942.772][WARNING]: screenshot failed, retrying
[1552561952.772][SEVERE]: Timed out receiving message from renderer: 10.000
2019-03-14 12:12:32.781 WARN c.k.k.c.w.h.s.WebUIScreenCaptor - Cannot take screenshot
2019-03-14 12:12:32.782 ERROR c.k.k.core.keyword.internal.KeywordMain - ? Unable to click on object ‘Object Repository/Track/Add.Log.Dialogue/Log.edit/input_project.edit’
2019-03-14 12:12:32.799 ERROR c.k.katalon.core.main.TestCaseExecutor - ? click(findTestObject(“Track/Add.Log.Dialogue/Log.edit/input_project.edit”)) FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Track/Add.Log.Dialogue/Log.edit/input_project.edit’
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:48)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$5.call(Unknown Source)
at MH_D1_Search_via_Dropdown_Compact.run(MH_D1_Search_via_Dropdown_Compact:74)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:331)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:322)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:293)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:227)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1552561776450.run(TempTestSuite1552561776450.groovy:35)

2019-03-14 12:12:32.802 ERROR c.k.katalon.core.main.TestCaseExecutor - ? Test Cases/MH_D1_Search_via_Dropdown_Compact FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Track/Add.Log.Dialogue/Log.edit/input_project.edit’
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:48)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$5.call(Unknown Source)
at MH_D1_Search_via_Dropdown_Compact.run(MH_D1_Search_via_Dropdown_Compact:74)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:331)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:322)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:301)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:293)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:227)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1552561776450.run(TempTestSuite1552561776450.groovy:35)

2019-03-14 12:12:32.805 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/MH_D1_Search_via_Dropdown_Compact


#5

@Timo_Kuisma The chrome browser should be opened properly because there are also some other steps in the script before the error happens and they pass without errors.


#6

hi,

add here e.g. 1 then you are able to seen all steps clearly and if there are needed some delay between steps


#7

I have same issue. And all this after chrome update from 72.0.3626.121 to 73.0.3683.86.
I have try to add arguments --disable-gpu and --disable-browser-side-navigation but no help.
I have try to update chromedrive to 73.0.3683.68 but no help.


#8

Timed out receiving message from renderer: 10.000, to remove this error message:
Go menu Project->Settings->Report and uncheck “Take screenshot when execution failed” and “Enable Video Recorder during execution”.


#9

Since last weekend I have a similar issue:
Using Jenkins which starts Katalon via a Windows batch script where Chrome is used as headless browser.
This worked very well during the last view months.
Now - maybe after Chrome update to 73.0.3683.86 - it doesn’t.
Please note the attached Katalon output.
I changed Chrome usage to Firefox and it works again as expected.
KatalonOutput.txt (4.7 KB)


#10

Seems exact same issue here:

  1. Chrome 73 (recent update)
  2. Windows 10 Pro
  3. Katalon Studio 6.1 (recent update)
  4. Jenkins 2.157

On local machine (and remote dedicated Jenkins machine) the printscreen is made successfully when executing via Katalon Interface. When executed via Jenkins project this happens often (but not all the time). In some test cases/suites printscreens are being made as before.
My test project is relatively mature and have function correctly for some time. The main changes between then and now are new Chrome version and new Katalon version.

Thank you,
Cornel Neacsu


#11

did u get a solutions of this?


#12

I have encountered the same issue…


#13

Thanks for the help, but this does not solve the initial problem. Also, we need screenshots for quicker debugging so disabling them is not an option for us.


#14

Thanks for the tip, but adding a delay did not solve the initial problem. Tests still failed on the same action with Chrome version 73 and passed with Chrome version 72. Currently, we solved our problem with downgrading Chrome and disabling Chrome auto upgrade. But this is not the proper way to solve this problem.


#15

Did you ever find a solution for this? I am have the same issue when running tests from Azure DevOps, I’ve removed all screenshots in the meantime.


#16

If you are still facing this issue, you can apply one of these solutions.


#17

Greate, solution works :slight_smile: