Blue Prism Product

last person joined: 11 hours ago 

Chat about Blue Prism products
Expand all | Collapse all

Wait stage in java automation

  • 1.  Wait stage in java automation

    Posted 11-18-2020 03:55
    Hi team,
    i read the document about java automation, I noticed that it is a very slow automation, also following best practices, i have to do with a java web app via iexplore, so my question is:it must always be used the "wait stage" to check that the java element is present before a click, reader, etc.?
    How can i improve resilience and speed, any tips? 
    Thanks in advance

    ------------------------------
    Vrat Himbo
    ------------------------------


  • 2.  RE: Wait stage in java automation

    Posted 11-19-2020 10:00
    up please

    ------------------------------
    Vrat Himbo
    ------------------------------



  • 3.  RE: Wait stage in java automation

    Posted 11-19-2020 10:56

    Try adding (without quotes) "descendtree,ignorenotshowing" to the additional options field in the application modeler.

    Additionally, you may want to consider using some of the following filters:

    • Match Index
    • Ancestor Count
    • aAncestor Count
    • Ordinal
    • Visible
    • Hidden
    • Parent Child Count


    ------------------------------
    Ami Barrett
    Automation Developer, Team Lead
    Blue Prism
    Plano, TX
    ------------------------------



  • 4.  RE: Wait stage in java automation

    Posted 11-20-2020 03:57

    Thanks @Ami Barrett,
    what will be the changes by inserting​ descendtree,ignorenotshowing, can you explain me, please?

    For the second tip, and that is to use some filters, how it improves speed execution?

    Thanks again.



    ------------------------------
    Vrat Himbo
    ------------------------------



  • 5.  RE: Wait stage in java automation

    Posted 11-20-2020 11:19
    descendtree, as far as I'm aware, is just a sort optimization for the DOM. ignorenotshowing tells the parser to ignore hidden elements (something known to plague anything using Java/Accessibility). 

    As for the filters, regardless of spy type, you can think of them as parameters to narrow down a DOM search. The more reliably refined you make it, the fewer elements the software will need to search through in order to find what you're looking for.

    ------------------------------
    Ami Barrett
    Automation Developer, Team Lead
    Blue Prism
    Plano, TX
    ------------------------------



  • 6.  RE: Wait stage in java automation

    Posted 11-23-2020 10:21
    I confirm that i don't have this field, why?

    Thx

    ------------------------------
    Vrat Himbo
    ------------------------------



  • 7.  RE: Wait stage in java automation

    Posted 11-23-2020 10:18
    Edited by Vrat Himbo 11-23-2020 10:23
    Hi @Ami Barrett,
    i didn't find this field on my application modeler, how can i find it?
    I don't know if it has anything to do with it, but is a web-based application so in application modeler i've selected browser web autiomation (internet explorer ) and not java automation, is that correct?

    Many thanks​

    ------------------------------
    Vrat Himbo
    ------------------------------



  • 8.  RE: Wait stage in java automation

    Posted 11-23-2020 10:32
    Ah. Yes, that's likely the reason. If it'll let you attach to it as a Java model, those should show.

    ------------------------------
    Ami Barrett
    Automation Developer, Team Lead
    Blue Prism
    Plano, TX
    ------------------------------



  • 9.  RE: Wait stage in java automation

    Posted 11-23-2020 10:40

    Thanks again for the reply, so in my case i'm not able to use the command descendtree,ignorenotshowing in no way, is correct?

    Because now i'm doing the attach operation to the internet web page and then use the java element.



    ------------------------------
    Vrat Himbo
    ------------------------------



  • 10.  RE: Wait stage in java automation

    Posted 11-23-2020 10:58
    If you don't have those modeler options, you should still be able to make use of the Visbile/Hidden filters to speed it up.

    ------------------------------
    Ami Barrett
    Automation Developer, Team Lead
    Blue Prism
    Plano, TX
    ------------------------------



  • 11.  RE: Wait stage in java automation

    Posted 11-23-2020 11:05
    Yes, i've the "Visible" filters, in my case to speed up the AM i need to select "Visible" = True?

    ------------------------------
    Vrat Himbo
    ------------------------------



  • 12.  RE: Wait stage in java automation

    Posted 11-23-2020 11:11
    Correct.

    ------------------------------
    Ami Barrett
    Automation Developer, Team Lead
    Blue Prism
    Plano, TX
    ------------------------------



  • 13.  RE: Wait stage in java automation

    Posted 11-19-2020 16:04
    Hi Vrat,

    Below point will help you.

    1. You can select only required attributes.
    2. 1 object for 1 application screen along with attach page.
    3.Use wait stage to validate you reach on correct screen or page is loaded successfully.
    4.Try to avoid static wait.
    5.Use wait stage after each attach action call.

    ------------------------------
    Nilesh Jadhav
    Senior RPA Specialist
    ADP
    India
    ------------------------------



  • 14.  RE: Wait stage in java automation

    Posted 11-20-2020 04:00
    Hi @Nilesh Jadhav,
    That's more or less what I did​. multi-object design, avoid static wait stage, or in case only before the "wait dinamic" java element, like described in java automation guide.
    But i've seen that loads the elements and performs the actions very slowly, even in "fast" mode.

    Have a nice day

    ------------------------------
    Vrat Himbo
    ------------------------------



Share