Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Control not found

    Posted Thu July 14, 2022 10:18 AM
      |   view attached
    I am trying to update attributes of a newly created user in windows server 2012 AD. The new user is displayed in a list where you can double click the specific user to open a new window where you can add additional attributes. I use recorder to create automation for this. When I press ctrl on the users list it is grabbed by tree context on the recorder where I can select the specific user and create a double click action and when I save the double click automation, it opens the user properties successfully but when I try to run the script from rpa studio it gives me error control not found.
    My ultimate goal is that rpa creates a new user and adds additional attributes like email and phone by double clicking the new user from the list. So far I can only successfully create a new user.

    ------------------------------
    Hasnat Ali
    ------------------------------


  • 2.  RE: Control not found

    Posted Fri July 15, 2022 12:30 PM

    Hi Hasnat, 

    I have asked our members for help on this question and one of them suggested the following: " try a delay between the commands, maybe the control is not loaded yet when you try to access it.
    Did you attach the window?"

    Maybe worth a try while I wait for other inputs/answers to share. 

    Will try to get back to you soon! 

    Gabriel



    ------------------------------
    Gabriel Marte Blanco
    ------------------------------



  • 3.  RE: Control not found

    Posted Mon July 18, 2022 01:49 AM

    Hello,

    Gabriel, I tried your suggestion of adding delays between the commands and still no result.

    Yes I have attached the window

    Image containing script design for the AD user attribute creation.


    ------------------------------
    Hasnat Ali
    ------------------------------



  • 4.  RE: Control not found

    Posted Fri July 15, 2022 04:43 PM
    Hi @Hasnat Ali,

    Your problem here probably is that the selector for the user is relying on positional and/or user-specific ​information and is not dynamic. See the highlighted image below.


    Without direct access to the application, I can only give you a couple of hints:
    • Try to use a variable in the Name parameter
    • See if the Id is really necessary. It might be that the -26 part is respective to the user position on the list
    • If the newly added user is always the first or the last item, maybe you could try to use XPath to locate it

    Hope this helps you.

    ------------------------------
    Vinicius Marques
    ------------------------------