總網頁瀏覽量

星期四, 8月 30, 2018

UiPath RPA Academy "Lesson 6 – Selectors" 之學習心得 PART6

Lesson 6 – Selector

茶餘飯後,就是思考的時候.但今天沒吃晚餐,所以...又肚子餓了.



UI

UI是建立在containers裡面,最大的container是desktop。
UI hierarchies可能不只三層,而selector只是到達UI element的actual full “path”。
它會有一個first selector,最後緊接著一個final selector
其中包含兩種資訊:
  1. Type the kind of element
  2. Attribute: help identify the element

註:

  1. 有些selector會出現唯一性的問題,這可能是一個bug,如果不要具有唯一性,請移除指定的selector。
  2. 如果是打在兩個Notepad之上,selector幾乎相同,除了title attribute第一項。
  3. Selector Editor: attributes list, the final selector.


  • Full:包含所有locate UI element的element,包含top level element (Basic recording使用)
  • Partial:不具有top level element, 其他皆與full 相同 (Desktop recording使用,對於會產生interference比較好用)

Fix the bug

Wildcards: characters you can use to replace the parts of the selector that change, or you don’t know of runtime.
  • *”代表任何數字或character
  • ?”代表指取代single character
Index”idx”是會告訴UiPath要選第幾個element in a container
(個人覺得這個超級重要的!超級好用!)



以下小總結這幾天;
14天好奇妙的數字,如何好好運用?如何抓到Q51,在提高V!今天吃過飯後一臉思考人生的迷茫,同桌的主管好像華爾街之狼的男配角QQ

但剛剛似乎有了些頭緒.我還在整理錯題本,我突然有信心第一次就700+.
接下還要相信自己的實力做模考,而且每天都要練到題目!


  • 會找一篇Prep寫到Q51並在持續找盲點(因為我有陳向東+老🐟...ㄡ
  • 應該會用GMAT.la來練,Prep跟GWD,我希望練pace因為我覺得慌的會是我自己,順便找久違的知識點.

早上讀一個小時的神教材,我發現做題雖然早上比較好,但思緒會被打斷...所以不如拿來複習一些該看的題目.(不然自己又沒時間,把每天的開始當讀書日多好
換句話說,晚上做模考練題,加上我要時間做訂正!拜託把題目控在10題左右,還有可能需要咖啡.
註:今天的心得是不是多就好,重點在總結,我可能交叉著做並把它”訂正完“!!!






Can full selectors be used inside a container (Attach Window or Open Application activities)?
Yes
No

How can you improve a selector?

By adding attributes with dynamic values
By selecting only stable attributes, if possible
By replacing dynamic attribute values parts with the "*" or "?" wildcards
By making sure you have an idx attribute

The Element Exists activity throws an exception if it doesn’t find the specified element on the screen.
False
True(X)

Can UiExplorer be used to record UI interactions?
Yes
No

What is the Highlight activity useful for?
For adding activities in Studio
For troubleshooting and verifying selectors
For removing selectors
註:這個蠻重要的!

How can you improve the following calendar page selector to work only for dates in 2017?
“<html app='chrome.exe' title='UiPath - Calendar - Week of May 1, 2017' />”
“<html app='chrome.exe' title='UiPath - Calendar - * />”
“<html app='chrome.exe' title='UiPath - Calendar - Week of ?????, 2017' />”
“<html app='chrome.exe' title='UiPath - Calendar - * 2017' />”
“<html app='chrome.exe' title='UiPath - Calendar -* 201?' /> “

What are the supported wildcard characters for selectors in UiPath Studio?
?
*
&
$
註:超級好用!!!

Which of the following is a valid full selector?
<wnd cls='Start' title='Start' />
<wnd app=’*' />
<wnd app='explorer.exe' cls='Shell_TrayWnd' />
<wnd cls='Start' title='Start' />(O)
<html app='chrome.exe' title='Yahoo Finance' />
<webctrl idx='1' parentid='data-util-col' tag='TABLE' />
<webctrl isleaf='1' tableRow='3' tag='TD' />

What is UiExplorer used for?
To create and fine tune selectors
UiExplorer is not part of UiPath
To explore the UI tree
To explore the workflow tree

This is a reliable selector for a dynamic page: "webctrl idx='144' tag='IMG'/"
True
False


SHARE AND LIKE IF IT HELPS

沒有留言:

張貼留言

Related Posts Plugin for WordPress, Blogger...