Selectors Fail for ServiceNow when published and Run on another machine

i am currently using UiPath studio 2022 for automating servcienow work. The selectors in my workflow work perfectly fine when i run the bot on my machine. However, after publishng the workflow and when tester runs the bot on their machine(one tester has 2021 bot and another as 2022), the selectors fail, causing the bot to stop for both of them.

@poojag.patil,

Have you checked if the selectors are really changing on the other machines or selectors are same but still bot not able identify them?

Also one thing to note while automating ServiceNow from front end that it’s Ui interface is very dynamic which changes as per screen resolution and many more system attributes.

Thanks,
Ashok :slight_smile:

Hi Ashok,

Selectors are same but are not identified on the tester machine. Could you please let me know how i can work on it as you mentioned Ui interface is very dynamic which changes as per screen resolution and many more system attributes for servicenow

@poojag.patil,

Best practice would be using Integration Services or API to automate ServiceNow.

Thank you Ashok. Can we automate of applying filter, fetching reports, exporting and finding specfic details on tickets using api

@poojag.patil,

Yes certainly we can do everything with API that we can do by front end.

Any documents to refer for how to get the API’s for teh servicenow used by my company

@poojag.patil,

You can check with the ServiceNow admin for this.

You can follow this documentation

https://docs.servicenow.com/bundle/xanadu-api-reference/page/build/applications/concept/api-rest.html