JavaScript Selector issue

  • When I try to open UI Explorer for a web element, I immediately get the error:

UI Element no longer exists

  • Because of this error, I am not able to view or edit the selector.
  • I am unable to set a dynamic selector for clicking a specific row/item (IP value) from multiple rows.

Scenario:

  • Web page contains multiple dynamic rows
  • Based on a condition, I need to click a specific IP/row
  • The page refreshes or reloads dynamically
  • Element disappears before UI Explorer can attach to it

What I observed:

  • The element is visible manually in the browser
  • But when switching to UiPath / UI Explorer, the element becomes invalid
  • Selector is not getting captured at all

What I tried:

  • WaitForReady = Complete
  • Added delays before opening UI Explorer
  • Tried Element Exists
  • Tried using wildcards (*)
  • Checked in both Modern and Classic activities

after all this i ask my friend this he is informed me to need to install one certificate to get JavaScript selector and need to install latest version of jsp something he is tryied to explain but he also forgot to do if any one know kindly guide me

Hi @rajababu.mandapati

This happens when UiPath cannot properly attach to the browser DOM, especially on dynamic JS-based pages. First, make sure the UiPath browser extension (Chrome/Edge) is installed, enabled, and repaired from Studio → Tools → Extensions, and that Studio and the browser are updated.

You don’t need a separate certificate, but JavaScript selectors work only when the extension is working correctly. Try opening UI Explorer while the workflow is paused using a breakpoint, or use relative selectors, anchors, or Find Children as a workaround.

Hi @rajababu.mandapati

There is no certificate is required for JavaScript selector please check if UiPath extension is install is in browser or not.
Try with dynamic selector and if it’s not work try with anchor based activity like Find Children to make selector as stable

Thanks

thanks for your suggestion
the chrome extension is perfect I check that the indication of the element is working fine but i am getting error while after the indication i am opening the UI Explorer
it is not showing anything in the explorer it is giving error only the UI Element No Longer Exist
this is the my query

I see exactly what’s happening. Even though the Chrome extension is working and the element highlights, UI Explorer can’t attach because the element disappears or reloads when you switch focus from the browser to Studio. This is common with dynamic or JS-heavy pages.

  • Pause your workflow at a breakpoint, then open UI Explorer while the element is still visible.
  • Use Find Children or Anchor Base to reliably capture dynamic elements.
  • Make sure the browser extension is repaired and updated.
  • Try using JavaScript selectors they only work if the extension is fully functional.

@rajababu.mandapati

  1. Is the element missing or the page is reloading when you open ui explorer? if so it would show that error
  2. Can you show the selector here we can check and help you with a dynamic one if it has any required attributes
  3. Also you can open ui explorer directly and indicate from there as well

cheers

not sure what this certificate is but it would help if you could give more details like a screenshot of the control, may be send a screenshot of the DOM to see if this row of table is being created dynamically on some event etc.
since it does sound to me like a table structure, its worthy to check if you are using any row identifier to click on a specific row that could possibly be missing from the sequence.

SG.




Please check the below selector then suggest what can i do to get selector

Hi @rajababu.mandapati
Try this approach

1 Use Indicate on Screen + F2 (Pause)
While indicating the element, press F2 to freeze the screen. This allows UiPath to capture the selector before the DOM refreshes.
2 Avoid UI Explorer and use a Dynamic Selector Remove volatile attributes and keep stable ones like tag and innertext.
Example -
3. use check app state activity instead of delay.

Hope it help you

Thanks & Happy Automactions

so do these items change the order or the text itself??
for example . if the 1st item is 10.10.85.26 will it change its position or completely has a new item in the first row?

Few observations :

  1. I see you have used attributes “inner text” as well as “aa name” which have the same value => better to choose only one that has the exact value of IP address and make sure the value is dynamically passed to the selector.
  2. remove the image identification since your IP address is being dynamically passed into the selector. your Fuzzy selector would just work fine if you fine tune the selector a bit.

P.S : when you are sharing images on a public n/w, remember to mask sensitive information.