How to I get around a ServiceNow overlay?

the issue here is that ServiceNow is now using shaddowRoot. And those are undetectable with xpath.
We are using here ServiceNow as well, and I ran into the same issue.

The only way around this is to use JavaScript with the “executeScript” kantu command.
With javascript you can then target those hidden tags below the Shadow-root.

Below is an example I posted a while ago how to do it

That should help.

NOTE: Whenever possible avoid xClick or any of those command that are using the visual UA for detection on the browser surface. They are very unreliable as they do not target the elements properly all the time. Especially if you browser zoom is not set to 100%. They don’t find them at all if you can’t see the elements in the browser window because you have to scroll down. They are just trouble.

1 Like