簡體   English   中英

從UI元素獲取價值

[英]Getting value from UI Element

我正在使用White在C#基於UIAutomation庫編寫一些東西,我想知道如何獲取元素的實際值? 我的意思是來自textbox ,來自button label和來自numeric up-down數字值? AFAIK都沒有像'GetValue'這樣'GetValue'方法。 如何實現呢?

//for textbox
string your_needed_text1 = textBox1.text;
//for button
    string your_needed_text2 = Button1.text;

。文本

Button.Text 
Label.Text
Textbox.Text

等等等等

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM