Search code examples
c#.netautomationui-automationwhite-framework

Getting value from UI Element


I'm writing some stuff based on UIAutomation library in C# using White and I was wondering how I could get the actual value of an element? I mean text from textbox, label from button and numeric value from numeric up-down? AFAIK there's no method like 'GetValue' in either. How to achieve this?


Solution

  • .Text

    Button.Text 
    Label.Text
    Textbox.Text
    

    Etc Etc