Need Help Capturing XPath for Flurp Extension (Floating Widget) – SpyWeb/RecordWeb Can't Detect It

Hi Katalon Community,

I’m trying to automate a floating flurp extension (a clickable widget pinned to the right side of the screen – see attached screenshot). It appears as a floating button/icon with id=“NetarxPop” and custom CSS positioning (position: fixed; top: 145px; right: 0px; z-index: 1000000).

The issue is:

:white_check_mark: I can inspect it manually via browser DevTools
:cross_mark: But I cannot capture its XPath using Spy Web or Record Web in Katalon Studio
:cross_mark: Since it’s not being detected, I can’t proceed with automating clicks or interactions

What I’ve tried:

Navigating to the correct page and trying to record the click manually

Manually copying XPath/CSS selector from DevTools – but Katalon can’t interact with the element

Verifying if it’s inside an iFrame (it isn’t)

Checking for shadow DOM (not present)

2 Likes

Hi there, and thanks for posting in the Katalon community! :hugs:

To help you faster, please review our guide on Record Web Utility here: Record Web utility in Katalon Studio | Katalon Docs. Double-checking the steps and configurations might resolve the issue.

If the doc doesn’t help, feel free to provide more details, and a community member will assist you soon.

Thanks for being a part of our community!
Best,
Elly Tran

Hi Elly,

Thanks so much for your quick reply and for sharing the documentation. :blush:
I carefully followed all the steps in the Record Web utility guide, including setting the correct browser, enabling the extension, and trying both SpyWeb and RecordWeb — but unfortunately, I’m still unable to capture the XPath for elements inside the Flurp extension.

When I inspect the Flurp extension popup (after clicking on it in the browser), the DOM structure seems different, and nothing gets captured by Katalon’s Spy or Recorder tools. It’s like the extension UI is isolated or in a shadow DOM — I’m not sure.

Is there any workaround to access or interact with Chrome extension UIs like Flurp using Katalon?

Thanks again for your support! :folded_hands:
Looking forward to your suggestions.

Best regards,
Ashraf Hussain

I looked at https://www.netarx.com/ for their demonstration content.

Using the DevTools, I could inspect the page manually.

I found the widget is contained in an <iframe>

I found the opposite. Yes, it is inside an <iframe>.

The Spy and Recording tool do not work well with contents inside <iframe>. So, I think you should not rely on the Spy and Recrding tools to work with the Flurp widget. You should be able to write a valid XPath manually, don’t you?

If you look at the very bottom of your image,

image

you will see the blue highlight of the <div> you have selected. Next to that going leftward, there is another <div> and then <div#app-root> and then … #shadow-root. The first line of the #shadow-root web page is:

So, it doesn’t look like your issue is with an <iframe> but with the <#shadow-root>.

1 Like

Hi there, thanks for checking the Netarx site — but I think there might be some confusion.

The issue I’m facing isn’t related to the Netarx website itself.

Could you please try the following to better understand my problem?

Open Chrome and go to the Chrome Web Store.

Search for “Flurp Lite” and install the extension.

After installing, go to your Gmail or Outlook — you’ll see a green Flurp icon appear.

Now try to inspect the Flurp UI using Chrome DevTools and attempt to capture its XPath.

My main issue is: I’m unable to capture any XPath or inspect the elements inside the Flurp extension using Katalon Spy Web or Record Web. It’s like the Flurp UI is isolated, and nothing is detected.

If you’ve worked with Chrome extension UIs before, I’d really appreciate any suggestions or workarounds for capturing element locators inside them.

Thanks again for your time and help!

Add images

Yes, I did it.

I looked into the DOM and found that

  1. There is a <div id="testbar"> which is a Shadow DOM root.
  2. The Shadow DOM contains a <div id="NetarxPop">
  3. The <div id="NetarxPos"> node is actually the Flurp’s floating widget.

@ahussain1 wrote:

I found the opposite, There is a Shadow DOM in the problem page.

You should ask if Katalon Spy Web and Record Web tool are really capable of scraping the nodes under a Shadow DOM.

The topic [New Releases] Katalon Platform Updates - January 4, 2022 wrote:

Enhancements
Enhance the support for multi-level Shadow DOM in Web Recorder and Spy

So, it seems Katalon attempted to support it.

Does it really work well? — I don’t know.

Can anyone put any light on this topic?

@Elly_Tran

1 Like

As per @kazurayam suggestion, you can see if the following assists you. You should also pay attention to the list of “Known Limitations”, such as only CSS locators and elements being “unclickable”.

Which kind of browser are you using? Chrome (branded)?

Which version of the browser are you using? v137.0.x?

Which version Katalon Studio are you using? v10.0? 10.1? 10.2?

If you are using Chrome (branded) v137, then the following issue would concern:

I mean, when Katalon Studio v10.1 and older launches Chrome (branded) 137.x, it will fail to activate Chrome Extensions(due to Chrome’s security policy). Possibly Flurp Extension in the target web page won’t be activated. Therefore Web Recording tool would not find Flup Extension in action in the page.