I ran it in headless mode but console is empty. So I was thinking that it might have some another capability setting for headless mode to make this work or dealing with console log needs to have a physical browser running.
Thank you for reminding me of the “remote-allow-origins=*” issue.
Really? For me, it worked.
2023-10-25 09:15:41.658 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2023-10-25 09:15:41.660 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Listen to Console log
2023-10-25 09:15:42.687 INFO c.k.k.core.webui.driver.DriverFactory - Starting 'Chrome (headless)' driver
Oct 25, 2023 9:15:42 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
2023-10-25 09:15:42.704 INFO c.k.k.c.w.util.WebDriverPropertyUtil - User set preference: ['args', '[--remote-allow-origins=*]']
2023-10-25 09:15:42.724 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds
Starting ChromeDriver 118.0.5993.70 (e52f33f30b91b4ddfad649acddc39ab570473b86-refs/branch-heads/5993@{#1216}) on port 31323
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Oct 25, 2023 9:15:46 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2023-10-25 09:15:46.541 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 1fef4d896ca1bfd4a80d220d3de73817
2023-10-25 09:15:46.659 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 118.0.5993.96
2023-10-25 09:15:46.660 INFO c.k.k.core.webui.driver.DriverFactory - platform = Mac OS X
2023-10-25 09:15:46.660 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59
2023-10-25 09:15:46.662 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList="", isApplyToDesiredCapabilities=true }
2023-10-25 09:15:50.639 INFO com.kms.katalon.core.util.KeywordUtil - >>>LOG 2023/10/25 0:15:50
2023-10-25 09:15:54.620 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Listen to Console log
I have
- Katalon Studio v8.6.8
- Chrome DevTools Protocol Integration 1.0.1
I needed to specify in the Desired Capability for Chrome “remote-allow-origins=*” to work around a problem in Selenium
1 Like
Thanks for showing the log @kazurayam. I will debug my solution why it won’t work in headless mode.
Thank you @kazurayam for such dedicated support.