[katalon-studio-github-action][WebUI] Github Action: Unable to open browser

I’m trying to integrate Katalon tests in a Git Hub Action, using katalon-studio/katalon-studio-github-action@v2 (Katalon Studio GitHub Action | Katalon Docs).

I want to test with Edge or Chrome, but since I’m using windows-latest, I’m selecting Edge.

I use the following workflow:

jobs:
test:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4.1.6

- name: Prepare and launch App
  run: ...

- name: Katalon Studio Github Action
  uses: katalon-studio/katalon-studio-github-action@v2
  with:
      version: '7.5.5'
      projectPath: '${{ github.workspace }}/katalon'
      args: '-noSplash -retry=0 -testSuitePath="Test Suites/Create Requests" -browserType="Edge" -apiKey= ${{ secrets.KATALON_API_KEY }} --config -webui.autoUpdateDrivers=true -executionProfile=local'

The GitHub action results in:

com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ‘’

What I’m doing wrong?
Thanks!

1 Like

Hi @rui.p.coelho,

Welcome to our community. I have found this similar thread: Failed run the ci/cd on github action. Please help take a look

Sorry. Still with the problem. I need to investigate further.

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

I’m using:

args: '-noSplash -retry=0 -testSuitePath="Test Suites/Create Requests" -browserType="Edge" -apiKey=${{ secrets.KATALON_API_KEY }} -executionProfile=local --config -webui.autoUpdateDrivers=true'

The browser installed in the GitHub Actions runner is: Microsoft Edge Version: 125.0.2535.92

I added a sleep in groovy script, before opening browser:

sleep(60000)
WebUI.openBrowser('')

Relavant logs secret seems to be:

INFO: Using `new EdgeOptions()` is preferred to `DesiredCapabilities.edge()`
[...]
2024-06-20 17:50:57.524 ERROR c.k.k.core.keyword.internal.KeywordMain  - ? Unable to open browser with url: '' (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ''
[...]

Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: U. Last 1 characters read: U
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'fv-az1050-333', ip: '10.1.0.94', os.name: 'Windows Server 2016', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: driver.version: CEdgeDriver

This also happens when the WebUI.openBrowser(‘’) includes an URL.
Katalon is not able to open the browser in this GitHub Action runner.

Still not working and I can’t get any clue from the logs.

1 Like

I changed the workflow to the very simplest one, to match the one suggested in the documentation, and updating the versions, but the problem remains:

com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ''

The workflos is as follows:

name: Katalon UI Tests

on:
  push:
	branches: [ katalon ]

  workflow_dispatch: # Enable manual triggering of the workflow

jobs:
  build:
	runs-on: windows-latest
	steps:
	- name: Checkout
	  uses: actions/checkout@v4.1.7
	- name: Katalon Studio Github Action
	  uses: katalon-studio/katalon-studio-github-action@v3.0
	  with:
		  version: '9.6.0'
		  projectPath: '${{ github.workspace }}/katalon-github-simplest'
		  args: '-noSplash -retry=0 -testSuitePath="Test Suites/SimpleTestSuite" -browserType="Edge" -statusDelay=15 -apiKey=${{ secrets.KATALON_API_KEY }} -executionProfile=default  --config -webui.autoUpdateDrivers=true'

I even tried to run in ubuntu-latest, and get a different error:

Katalonc: Cannot open display: 

Still without success.
Did any one implemented successefully a GitHub action for Katalon?

Hi @rui.p.coelho,

Sorry for my late response I had my days off last week. Please help try the following guides that my team would like to suggest. Lemme know if you cannot get it

CST-Github Action.-010724-034106.pdf (43.7 KB)
CST-How to use GitHub Action to execute Katalon Studio project-010724-034206.pdf (467.0 KB)

Hello Elly,

Thank you for the reply.
I will try it.