uipath學習


一.uipath的快捷鍵操作 

shift+home/end:選中當前行

二.uipath的一些常見問題

1.throw組件:主動拋出異常。

2.vb中的長度是Length

3.vb.net中的DataTable.Rows.IndexOf(row)如何理解?
  輸入datatable中的某一行,返回此行位於datatable什么位置。
4.id:其中的數字可能會隨着刷新而改變。
5.excel中數據的追加
  先build數據在append

三:組件及作用

1.appendrange:向表格中追加內容

2.builddatatable:uipath中添加數

3.get row item:獲取每一行/列的值

4.throw:主動拋出異常。

5.readcolumn與readrange與readrow的區別?

6.for each row與for each的區別?
  for each row 適用與readrange
  for each適用與readcolumn或readrow
7.Element exists 判斷元素是否存在,主要兩個功能,1.判斷是否延時加載,2True/False。常與if/else組合使用。
8.Find Element:查找元素,應用場景:上個組件的output:element,下一個組件click:input-element。
9.Find Children :查找元素節點數量。數據類型:節點集合,可以用來作判斷。與gettext判斷長度作用類似
10.Matches:正則表達式
11.Excel scope:優勢,打開一次文件可以多次讀寫;workbook:每次讀寫操作都需要打開excel
缺點:不會關閉excel進程。

12.matches:正則表達式匹配,匹配出的結果是一個集合直接打印不出來需要使用for each才能取出具體的值。

13.判斷長度有兩種方法。Length與Count,這兩種都是針對數據類型為字符串。

14:split用法:split(string,"分隔符")(i) , VB中取數組中的值用()

 15:vb中的長度函數:string.count()和string.length()

16:列表,數組,字典用{}表示

17:隨機函數:new random().next(x),取值范圍 [0,x)

其他:
面向對象語言的特征:封裝,繼承和多態
對象需要經過實例化才能調用。

五:vb.net中的字符串用法

  

Concat
Concatenates the string representations of two specified objects 
Expression: String.Concat (VarName1, VarName2)

 

Contains
Checks whether a specified substring occurs within a string. Returns true or false 
Expression: VarName.Contains (“text”)
Format
Converts the value of objects to strings (and inserts them into another text)
 Expression: String.Format(“{0} is {1}”, VarName1, VarName2)
IndexOf
Returns the zero-based index of the first occurrence of a character in a String 
Expression: VarName1.IndexOf(“a”)
Join
Concatenates the elements in a collection and displays them as String 
Expression: String.Join(“|”, CollVarName1)
Replace
替換所有滿足條件的字符(沒有的話則不替換) 
Expression: String.Replace (”original”, “replaced”)
Split
Splits a string into substrings using a given separator
Expression: split(string,分隔符)(0),結果返回第一個分隔的字符串
Substring
提取字符片段
Expression: String.Substring(startIndex, length)

 六:其他

  1:初始化列表/新建列表

    new List(of String)   {}

七:三種定位元素的方法及區別

  1.選擇器直接定位

    注意:有idx時定位不准,需要切換成其他定位符號。

  2.通過元素定位

  3.通過圖像傳遞元素

 八:輸入文本的三種方式

  1.type into

  2.set to clipboard+cv(賦值粘貼)

  3.set text


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM