Digital Exchange

 View Only
last person joined: yesterday 

This community is a place to discuss Blue Prism DX assets and development.

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
    ------------------------------



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

    Posted 02-21-2022 17:00
    Hi
    I'm getting a similar error when trying to get the "web attribute" I cannot find the attribute to get the Web Value. Any ideas team?
    Thank you in advanced
    Element to get attribute


    ------------------------------
    Cristian Lopez
    Developer
    Roboyo
    Europe/London
    ------------------------------



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

    Posted 7 days ago
    Hi Cristian Lopez
    did you manage to solve this problem?
    I have the same problem

    ------------------------------
    Thiago Rolim
    ------------------------------



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

    Posted 7 days ago
    Hi Thiago,

    If you know the tag of the element you need to have then you can use an XPath expression to get the element identified in the 'Web Path' attribute.

    So considering Chirstian's example as shown in the screenshot we can have an XPath query as //textarea[text()='ACTUALIZAR RECIBO']

    Here, only the highlighted areas will change as per the web element you want to spy where the area highlighted in orange would denote the tag name of the element which can be label, input, button, textarea etc. whereas the area highlighted in yellow would be the actual text of that element.

    ------------------------------
    ----------------------------------
    Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future

    Regards,
    Devneet Mohanty
    Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
    Wonderbotz India Pvt. Ltd.
    Blue Prism Community MVP | Blue Prism 7x Certified Professional
    Website: https://devneet.github.io/
    Email: devneetmohanty07@gmail.com

    ----------------------------------
    ------------------------------



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

    Posted 7 days ago
    Hi Thiago,

    I had to use a workaround using send keys. I just had to select the area CTRL+A and then CTRL+C and CTRL+V. I will try Devneet's solution

    ------------------------------
    Cristian Lopez
    Developer
    Roboyo
    Europe/London
    ------------------------------



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

    Posted 7 days ago
    Thanks Devneet for the help but,
    For me the Devneet solution didn't work!

    Hi Cristian Lopez
    I used the same way as your solution, using the Global send keys Ctrl+C and the Get Clipboard action.

    ------------------------------
    Thiago Rolim
    ------------------------------



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

    Posted 7 days ago

    Hi Thiago,

    I think there might be a space or some hidden character along with that text as well. Can you try the following XPath query once and let me know if that works: //textarea[contains(text(),'ACTUALIZAR RECIBO')]

    Here, the contains function will basically look for the string to be present anywhere within the textarea element instead of performing an exact match.

    Also, Thiago can you show us the exact source code for your web element once so that I can confirm this clearly.

    You can see that in the below example, I am able to get my name which is a hyper link using a similar XPath expression:




    ------------------------------
    ----------------------------------
    Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future

    Regards,
    Devneet Mohanty
    Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
    Wonderbotz India Pvt. Ltd.
    Blue Prism Community MVP | Blue Prism 7x Certified Professional
    Website: https://devneet.github.io/
    Email: devneetmohanty07@gmail.com

    ----------------------------------
    ------------------------------



Welcome to the Blue Prism Digital Exchange Community!

The Blue Prism Digital Exchange is a "shop window" for new and emerging technologies—a platform that puts powerful RPA and AI capabilities into the hands of business leaders. Users can find and apply pre-built AI capabilities, in the form of downloadable integrations and Visual Business Objects (VBOs), to automated processes. These assets connect and integrate Digital Workers, existing systems and processes to Blue Prism's technology partners, creating a solid foundation of AI-enabled Intelligent Automation that's scalable and sustainable.

Blue Prism Digital ExchangeDX Asset IdeasContact DX Support

FAQs

The Blue Prism Digital Exchange (DX) is an online marketplace where businesses can instantly access, apply and share pre-built AI, cognitive and advanced RPA technologies from best-in-class providers. These assets easily connect to existing digital workers, systems and processes to enhance automation capabilities.
The Digital Exchange is free to all users. Most of the content on the DX is free to download but there are some submissions that do have a cost associated. The submissions with a cost are advertised on the asset card and profile. No unwanted costs will be applied to any users.
You can visit and browse the Digital Exchange here. If you would like to consume or download any material it is necessary to create an account on the Blue Prism Portal first.
Everyone can access the Digital Exchange and consume the assets on it. If you would like to contribute to the marketplace it is necessary that you create an account and sign up as a partner.