# Automate right-click then select inspect

**URL:** <https://forum.katalon.com/t/automate-right-click-then-select-inspect/55484>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [June 7, 2021, 8:02pm UTC](https://forum.katalon.com/t/automate-right-click-then-select-inspect/55484 "2021-06-07T20:02:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnewman](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jnewman/32/16103_2.png) [@jnewman](https://forum.katalon.com/u/jnewman)\
**Post date:** [June 7, 2021, 8:02pm UTC](https://forum.katalon.com/t/automate-right-click-then-select-inspect/55484/1 "2021-06-07T20:02:49Z")

</div>

I am looking to create a test script, where I right-click on an object (located in my object repository) and then select the Inspect menu items. I want to be able to automate getting into Dev tools.

---

<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:** [June 8, 2021, 12:37am UTC](https://forum.katalon.com/t/automate-right-click-then-select-inspect/55484/2 "2021-06-08T00:37:19Z")

</div>

> [@jnewman](#):
>
> I want to be able to automate getting into Dev tools.

If you want to utilise the Dev tools features, then you should look at Chrome DevTools Protocol.

> **[Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/)**
>
> Chrome DevTools Protocol - version tot

> The **Chrome DevTools Protocol** allows for tools to instrument, inspect, debug and profile Chromium, Chrome and other Blink-based browsers.

Katalon Studio has a plugin which enables your Test Case script to utilize CDP API.

> **[Chrome DevTools Protocol Integration](https://store.katalon.com/product/144/Chrome-DevTools-Protocol-Integration)**
>
> Katalon Store is a collaborative marketplace that allows users to develop and share plugins, integrations, and keywords that enhance Katalon Studio capabilities.

* * *

> [@jnewman](#):
>
> I right-click on an object (located in my object repository) and then select the Inspect menu items.

I think that “right-clicking” is not a good approach to CDP. It’s too much of indirection.

---

<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:** [June 8, 2021, 12:46am UTC](https://forum.katalon.com/t/automate-right-click-then-select-inspect/55484/3 "2021-06-08T00:46:35Z")

</div>

Here is a sample project where I used one of the features provided CDP:

> [@How to make Katalon Test Case listen to Javascript console.log() from Chrome](http://forum.katalon.com/t/how-to-make-katalon-test-case-listen-to-javascript-console-log-from-chrome/51048):
>
> Here I published the sample code [SaveWebPageAsMHT/docs/HowToListenToConsoleLog.md at master · kazurayam/SaveWebPageAsMHT · GitHub](https://github.com/kazurayam/SaveWebPageAsMHT/blob/master/docs/HowToListenToConsoleLog.md)Problem to solve Calling console.log(message) API in JavaScript in web pages is ubiquitous. You can see the messages in the Console tabs of Browser Developer Tools. Russ Thomas gave us [a nice tutorial about the Developer Tools](http://forum.katalon.com/t/how-to-use-the-browser-developer-tools-f12-devtools/34329). It is natural that WebUI testers want to transfer the messages that apprears in the Broswer console into automated test scripts like Kat…

* * *

> [@jnewman](#):
>
> I want to be able to automate getting into Dev tools.

What feature of DevTools do you want to use? The DevTools offers a lot of utilities each of which deserves own API. So you should forcus on one at a time.

Here is a set of sample Java codes that utilizes features offered by Chrome DevTools Protocol.

> **[chrome-devtools-java-client/cdt-examples/src/main/java/com/github/kklisura/cdt/e...](https://github.com/kklisura/chrome-devtools-java-client/tree/master/cdt-examples/src/main/java/com/github/kklisura/cdt/examples)**
>
> Chrome DevTools java client. Contribute to kklisura/chrome-devtools-java-client development by creating an account on GitHub.

Do you find something you want to try yourself? If yes, that’s the one you should look at deep. If no, … mmm, you have invent a magic for yourself. Good luck.
