문제

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?

도움이 되었습니까?

해결책

.Text

Button.Text 
Label.Text
Textbox.Text

Etc Etc

다른 팁

//for textbox
string your_needed_text1 = textBox1.text;
//for button
    string your_needed_text2 = Button1.text;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top