Digital Exchange

Expand all | Collapse all

How does the "Get Attribute" method of the read stage in blueprism work?

  • 1.  How does the "Get Attribute" method of the read stage in blueprism work?

    Posted 09-09-2019 12:01

    I'd like to get the text of an textfield. I've already tried to get it via 'Get text', but that did not work. When I spy the element, blueprism is able to read the text of the element in the property 'Web Value', which is in the application modeller. I'd like to access this 'Web Value'. When I use a read stage and the method 'Get Attribute', I can enter an Attribute name. 'Web Value' does not return the desired value. So how does 'Get Attribute' work?

    --------------------------------------------------
    Disclaimer: This content was auto-posted from Stackoverflow. The original Stackoverflow question is here Stackoverflow Post, posted by Kevin01.


  • 2.  RE: How does the "Get Attribute" method of the read stage in blueprism work?

    Posted 04-02-2020 17:37
    I'm having the same situation. I need to read the Web Value from a specific field, but just putting "Web Value" as an input for Get Attribute doesn't do anything. Did you find a fix?

    ------------------------------
    Zdravko Botushanov
    Senior RPA Consultant
    Human+
    Europe/Sofia
    ------------------------------



  • 3.  RE: How does the "Get Attribute" method of the read stage in blueprism work?

    Posted 04-02-2020 17:52
    You need to give the actual HTML Attribute Names as inputs to Get Attribute. You can either look at the HTML to determine the Attribute Name, or you can try removing the word 'Web' from the Application Modeller Attribute Name and try that. Some examples...

    (fyi, I believe this is case insensitive, but I'm capitalizing the first letter of words anyway)
    If Application Modeller says the Attribute Name is 'Web Value', then you can use 'Value'.
    Web Class = Class
    Web Height = Height
    etc.

    ------------------------------
    Dave Morris
    3Ci @ Southern Company
    Atlanta, GA
    ------------------------------



  • 4.  RE: How does the "Get Attribute" method of the read stage in blueprism work?

    Posted 04-02-2020 19:22
    Hi @Dave Morris. I tried that, but it still doesn't return anything. I want to get this Web Value attribute. I tried to get attribute "Value", but it doesn't seem to work.

    Here's the attribute and my configuration




    ------------------------------
    Zdravko Botushanov
    Senior RPA Consultant
    Human+
    Europe/Sofia
    ------------------------------



  • 5.  RE: How does the "Get Attribute" method of the read stage in blueprism work?

    Posted 04-02-2020 19:25
    Look in the HTML by right clicking on the page and click Inspect. Make sure that the value you're looking for is actually in the Attribute 'value'. If you're getting back nothing, then that Attribute either doesn't exist or it's empty in that element.

    ------------------------------
    Dave Morris
    3Ci @ Southern Company
    Atlanta, GA
    ------------------------------



  • 6.  RE: How does the "Get Attribute" method of the read stage in blueprism work?

    Posted 04-03-2020 08:23
    Hi @Dave Morris. Thanks a lot for that! I checked the HTML and it turns out value is written in small letters there, while Blue Prism provides it as Web Value (both capital letters). Thus, I put the attribute in BP to be "value" and it worked great.

    Thanks a lot for your help! You saved me a lot of time!

    All the best and have a great rest of the week! :)


    ------------------------------
    Zdravko Botushanov
    Senior RPA Consultant
    Human+
    Europe/Sofia
    ------------------------------