Robotic Process Automation (RPA)

 View Only
  • 1.  Try to get control using Recorder

    Posted Tue May 25, 2021 04:12 PM

    Hello all,

    Now i'm using recorder to click on item located in menu item however, it gives me that error "click --selector "Name" --controlsimilarity 100 --name Administration
    Control not found to TryGetControl on Name=Administration"

    In addition the same error appears when trying to set a value in text box for the same application.

    Kindly anyone can help me?




    ------------------------------
    Arwa Aly
    ------------------------------


  • 2.  RE: Try to get control using Recorder

    IBM Champion
    Posted Wed May 26, 2021 03:45 AM
    Hi Arwa , 
    Try to change the selector and click on the head of the menu (The top element) first then click on the menu item , You may provide a screenshot of the application and what would you like to do exactly

    ------------------------------
    Mohamed AbdelWahed
    ------------------------------



  • 3.  RE: Try to get control using Recorder

    Posted Wed May 26, 2021 05:46 AM
    Thanks Mohamed for your response. I've tried all the selectors does not work, moreover tried the OCR and gives the same error.
    Ilustration for what I need to do:
    1. click on "Administration" item.
    2. then click on "Student" item.

    Code lines:
    click --selector "Name" --controlsimilarity 100 --name Administration
    click --selector "Name" --controlsimilarity 100 --name Student
    //click --selector "XPath" --controlsimilarity 100 --xpath "/root/menubar[1]/menuitem[1]"
    //click --selector "XPath" --controlsimilarity 100 --xpath "/root/menubar[1]/menuitem[1]/menuitem[1]"


    ------------------------------
    Arwa Aly
    ------------------------------



  • 4.  RE: Try to get control using Recorder

    Bot Builder
    Posted Wed May 26, 2021 06:12 AM
    Hello Arwa,

    Did you attach to the current window? If not, that might have caused the problem. Also if you want to click on a subelement in menu item like this, you should also attach again once clicked on the parent element.

    Regards,

    ------------------------------
    Stefan Stefanov
    ------------------------------



  • 5.  RE: Try to get control using Recorder

    Posted Thu May 27, 2021 05:18 AM
    Edited by Arwa Aly Thu May 27, 2021 05:18 AM
    Hello Stefan,

    That fixed the issue, I was attaching the window once at the begging and by attaching window again as your suggestion fixed the error.

    Thank you,

    ------------------------------
    Arwa Aly
    ------------------------------



  • 6.  RE: Try to get control using Recorder

    Posted Sun June 13, 2021 08:39 PM
    Pode colocar suas linhas de código aqui? Estou com o mesmo problema.

    ------------------------------
    Thays Costa Nascimento
    ------------------------------



  • 7.  RE: Try to get control using Recorder

    Posted Mon June 14, 2021 08:04 AM
    Oi Thays, bom dia.

    Pelo que lembro aqui eu utilizo a sequêcia de comandos assim:

    Encontrar a janela > Focar na janela > Clicar no menu > Clicar no sub-menu

    E aí pelo que me lembro preciso ativar a opção de "Atualizar Cache" (--forcerefresh) para que o RPA reconheça que o sub-menu foi aberto e achar então as opções

    ------------------------------
    Caio Zimmermann
    ------------------------------



  • 8.  RE: Try to get control using Recorder

    Posted Mon June 14, 2021 10:27 AM
    Olá Caio,

    Deu certo colocando para atualizar o cache, tive que colocar para simular humano nos cliques e no ultimo sub-menu a ser clicado tive que colocar para procurar pelo Xpath (acredito que porque precisava clicar em Alt para abrir o menu do sistema).

    Obrigada!

    ------------------------------
    Thays Costa Nascimento
    ------------------------------