Hello UiPath Community,
I recently ran into an issue with one of my automation that is in production. The robot logs into service now in chrome and then must navigate to a specific report by searching using the search bar. I have the robot type into the search bar and then hit the magnified glass to search. The type into uses “SimulateType” and the click uses “SimulateClick”. Both of these actives executed correctly a month ago, when the automation last ran. All of a sudden these actives have stopped working.
Here is the part that I do not understand. When I already have ServiceNow up and just run the type into and click portion of the automation, it works correctly. When I run the automation from the beginning, where it logs into ServiceNow and navigates to the reports page, it fails. It’s almost as if the robot looses connection with the web browser (chrome). The automation faults after these 2 actions, since the selection is not found due to the search not executing properly. I have tried changing the actives to the defaults and SendWindowMessges with no success. I am unable to attach my workflow due to sensitive information. I was wondering has anyone experience this with their automation?
I am running the automation using robot version 2018.2.3 and chrome version 69.0.3497.81 (Official Build) (64-bit)
I am assuming that you are seeing ‘Selector not found…’ error for the Type Into activity first since its before the Click activity and that’s where your workflow stops.
Did you try adding a Delay right before the ‘Type Into’ activity?
You can also try by changing the WaitForReady property to ‘Completed’ and see it helps.
I hope you don’t have any other ServiceNow tabs open which may match the selector similar to your attach browser.
@Rammohan91
Thanks for your quick response! I do not get an error until after the click activity when it tires to click on the report selector that is not there since the search isn’t executing properly. So the robot does appear to be executing both the type into and click.
I only have 1 instance of chrome open with 1 ServiceNow tab. I have all my activities WaitForReady property set to ‘Completed’.
The issue I am having is very odd, since my automation ran fine up until this last production run on 9/2/2018.
Not sure if i misunderstood it, but just to confirm, Are you saying that ‘Type Into’ for typing the report name & ‘Click’ for magnifying icon works and performs the action properly, however the report that is there in the results is not getting clicked?
@Rammohan91
Hi Rammohan,
Yes. The robot does not error on the‘Type Into’ for typing the report name and the ‘Click’ for magnifying icon. But it is as if the robot is not executing the actives. No text is displayed in the search bar and the magnifying icon is not clicked.
To start with, put 2 ‘Highlight’ activities right before the ‘Type Into’, one with the selector similar to ‘Type Into’ and another with the selector similar to ‘Click’. See if it highlights the areas.
If it doesn’t work then add a ‘Delay’ activity before the highlight activity with couple of seconds and see again it it works.
Also, CHECK ‘ClickBeforeTyping’ property for the ‘Type Into’ activity. It may be the case that ‘Type Into’ is not entering anything due to which ‘Click’ may not be work.
@Rammohan91
Thank you so much for your help! I was able to get the type into to work when I added the ‘ClickBeforeTyping’. The click action on the magnified glass was not working because after the type into, the page would scroll a little bit making the button “un-clickable”. I now have the robot clicking back into the input box of the type into and then I send the enter hot key without a selection. Adding the highlights and delays were very useful. Thank you for your advice!