Giter VIP home page Giter VIP logo

Comments (6)

Wolfe1 avatar Wolfe1 commented on May 18, 2024

Are you looking for something like this?

#142

from robotframework-zoomba.

daylight24 avatar daylight24 commented on May 18, 2024

@Wolfe1 Can't use Get Element Attribute because i get value from new develop desktop application and locator with accessibility_id by automation_id(cashtotalamount). Please clarify how to locate and get value from this element locator.
Example:
${value}= Zoomba.DesktopLibrary.Get Element Attribute accessibility_id=cashtotalamount
Log to console ${value}
Now Result : none

from robotframework-zoomba.

Wolfe1 avatar Wolfe1 commented on May 18, 2024

@daylight24 Get Element Attribute takes two parameters, a locator and the attribute you wish to get: https://accruent.github.io/robotframework-zoomba/DesktopLibraryDocumentation.html#Get%20Element%20Attribute

So for value it should be like that example I listed:

${value}=     Get Element Attribute      accessibility_id=cashtotalamount       Value.Value
Log    ${value}    WARN

from robotframework-zoomba.

daylight24 avatar daylight24 commented on May 18, 2024

@Wolfe1 I had try anyway to use this function "Get Element Attribute" I try with any attribute but log always return value "None". Please Clarify if you has solution for this case.

from robotframework-zoomba.

Wolfe1 avatar Wolfe1 commented on May 18, 2024

@daylight24 here is an example you can try with the built-in windows 10 calculator:

*** Settings ***
Library           Zoomba.DesktopLibrary
Force Tags        Windows

*** Variables ***
${REMOTE_URL}           http://127.0.0.1:4723/wd/hub
${APP}                  C:/Windows/System32/notepad.exe

*** Test Cases ***
Wait For And Click Element By Id Keyword Test
    Open Application    ${REMOTE_URL}     platformName=Windows    deviceName=Windows   app=${APP}   port=4724
    Maximize Window
    Wait For And Input Text      Name=Text Editor     testing
    ${value}=     Get Element Attribute     Name=Text Editor       Value.Value
    Log    ${value}    WARN
    Quit Application
    Wait For And Click Element      Name=Don't Save

In this test I type 'testing' into the text editor. This makes the value of the Text Editor equal to 'testing'

image

This can be seen using accessibility insights:
image

or in the older inspect.exe which will actually spell it out correctly as 'Value.Value':

image

Accessibility insights can be downloaded here: https://accessibilityinsights.io/

Insights.exe is a part of the Windows SDK, some information here: https://docs.microsoft.com/en-us/windows/win32/winauto/inspect-objects?redirectedfrom=MSDN

from robotframework-zoomba.

Wolfe1 avatar Wolfe1 commented on May 18, 2024

Closing due to inactivity

from robotframework-zoomba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.