# open non http/https url browser setting through katalon studio

**URL:** <https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408>\
**Category:** Web Testing\
**Tags:** selenium, chrome, browser\
**Created:** [August 31, 2023, 8:36am UTC](https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408 "2023-08-31T08:36:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![prateeks](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/prateeks/32/23870_2.png) [@prateeks](https://forum.katalon.com/u/prateeks)\
**Post date:** [August 31, 2023, 8:36am UTC](https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408/1 "2023-08-31T08:36:06Z")

</div>

I am trying to open **chrome://newTab** through the katalon navigateToUrl parameter but katalon is not allowing to open non http/https string whereas selenium is allowing for the same with plain java code. The katalon is giving the below error. I have tried to open URL through the script mode executeScript parameter but no luck.. !!

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/5/7/5753b74900a620cb1be8c8582e3a4dfa88c87308.jpeg)

---

<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:** [August 31, 2023, 8:47am UTC](https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408/2 "2023-08-31T08:47:24Z")

</div>

> open non http/https url browser setting through katalon studio

No hope.

> [@Just trust me, okay?](http://forum.katalon.com/t/just-trust-me-okay/92807):
>
> [image] Just trust me. You really DONT want to do that.

---

<div class="post-metadata">

**Author:** ![prateeks](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/prateeks/32/23870_2.png) [@prateeks](https://forum.katalon.com/u/prateeks)\
**Post date:** [August 31, 2023, 9:06am UTC](https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408/3 "2023-08-31T09:06:40Z")

</div>

I have a valid use case in which I need to interact with the cookies toggle button.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/a/4/a477bcf05bdd486491ba08a6cd0a1879b5f14d2b.jpeg)  
I do not want to do it by default in the browser setting but need to do it for a particular web application.

---

<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:** [August 31, 2023, 9:10am UTC](https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408/4 "2023-08-31T09:10:24Z")

</div>

Perhaps you should have a look around `DesiredCapabilities` whicl will enable you to tune browsers for your usecases.

See for example

> **[Start browsers in private mode in Katalon Studio | Katalon Docs](https://docs.katalon.com/docs/create-tests/manage-projects/project-settings/desired-capabilities/start-browsers-in-private-mode-in-katalon-studio#chrome)**
>
> The following guidelines show you how to start browsers (Firefox, Chrome, Edge Chromium) in a private mode in Katalon Studio.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [August 31, 2023, 1:03pm UTC](https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408/5 "2023-08-31T13:03:17Z")

</div>

@prateeks (@albert.vu)

That and other URIs like it are fossil bugs in Katalon.

@kazurayam Remember this?

> [@URLs supplied to Katalon APIs MUST support data URIs](http://forum.katalon.com/t/urls-supplied-to-katalon-apis-must-support-data-uris/12203):
>
> Example: the following should work: WebUI.navigateToUrl('data:text/html;charset=utf-8,\<div\>Katalon\</div\>') But KS (java.nio) issues the following error: Unable to navigate to ‘data:text/html;charset=utf-8, Katalon’ (Root cause: java.nio.file.InvalidPathException: Illegal char \<:\> at index 4: data:text/html;charset=utf-8,Katalon) which is silly – a colon is certainly NOT an illegal character when part of a Scheme, otherwise http:, https: etc should fail also… goodbye the interwebz. [https:…](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics%5C_of%5C_HTTP/Data%5C_URIs#Browser%5C_compatibility)

That was _FIVE YEARS AGO_.

---

<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:** [August 31, 2023, 1:32pm UTC](https://forum.katalon.com/t/open-non-http-https-url-browser-setting-through-katalon-studio/94408/6 "2023-08-31T13:32:26Z")

</div>

> [@Russ\_Thomas](#):
>
> @kazurayam Remember this?

Yes, of course.

It is possible to let `java.net.URL` class to accept any non http/https protocol such as `data:` or `chrome:`. You want to configure the class as the following post explains:

[http://forum.katalon.com/t/enabling-data-url-in-katalon-studio/54146](http://forum.katalon.com/t/enabling-data-url-in-katalon-studio/54146)

However, configuring `java.net.URL` class is not enough for @prateeks’ case.

The original poster (@prateeks) wants his/her Katalon Test Case script to be able to perform the following statement:

```auto
WebUI.openBrowser('chrome://newTab')

```

I think this statement will not work. Why? You need to check the [“W3C RFC WebDriver”](https://www.w3.org/TR/webdriver1/#protocol)

> 1. Protocol  
> WebDriver [remote ends](https://www.w3.org/TR/webdriver1/#dfn-remote-ends) must provide an [HTTP compliant](https://www.w3.org/TR/webdriver1/#dfn-http-compliant) wire protocol where the [endpoints](https://www.w3.org/TR/webdriver1/#dfn-endpoints) map to different [commands](https://www.w3.org/TR/webdriver1/#dfn-commands).

So the WebDriver protocol specification a  
requires `http:` and `https:`. No other protocols are mensioned.

I guess that `WebUI.openBrowser('chrome://....')` would not work.

DISCLAIMER: I have not checked my guess. I am not going to check it. I think that Desired Capability is the solution for the original post.
