UiPath支持的項(xiàng)目主要有以下三種類型:
------Sequences - 適用于線性過(guò)程,使您能夠順利地從一個(gè)活動(dòng)轉(zhuǎn)到另一個(gè)活動(dòng),而不會(huì)使項(xiàng)目混亂。
-------Flowcharts- 適用于更復(fù)雜的業(yè)務(wù)邏輯,使您能夠通過(guò)多個(gè)分支邏輯運(yùn)算符以更多樣化的方式集成決策和連接活動(dòng)。
-------State Machines - 適用于大型項(xiàng)目; 他們?cè)趫?zhí)行中使用有限數(shù)量的狀態(tài),這些狀態(tài)由條件(轉(zhuǎn)換)或活動(dòng)觸發(fā)。
本小實(shí)例將講解Sequences項(xiàng)目,也就是適用于線性流程的項(xiàng)目。
1、測(cè)試所用的網(wǎng)址:https://acme-test.uipath.com/account/register,這是UiPath官網(wǎng)提供給學(xué)習(xí)者使用的測(cè)試網(wǎng)站。
2、點(diǎn)開(kāi)“Start”->點(diǎn)擊”P(pán)rocess”。

3、在“Name”、”Location”、”Description”輸入相應(yīng)的內(nèi)容,然后點(diǎn)擊”Create”。
???? Name:Test1
???? Location:E:\dd3\UiPath Samples\Test1
???? Description:第一個(gè)測(cè)試實(shí)例

將進(jìn)入開(kāi)發(fā)界面。

4、雙擊選中"Main.xaml"

5、選中"Activities

在”Activities”的搜索框輸入"Sequence"

把"Sequence"拖拽到"Main"面板

6、點(diǎn)擊選中”Activities”

在搜索框輸入”O(jiān)pen Browser”

把”O(jiān)pen Browser”拖拽到”Sequence”里面

7、BrowserType選"IE"。

Url輸入https://acme-test.uipath.com/account/register/,注意要用雙引號(hào)。

點(diǎn)擊“OK”


8、加多一個(gè)Sequence
???? 點(diǎn)擊選中“Activities”

在搜索框輸入”Sequence”

把”Sequence”拖到”Do”里面

重新命名成”Register User”

9、輸入E-mail。
??? 點(diǎn)擊選中” Activities”

在搜索框輸入”Type Into”

把”Type Into”拖進(jìn)”Register User”

打開(kāi)IE瀏覽器,在地址欄輸入:https://acme-test.uipath.com/account/register

回到UiPath,點(diǎn)擊"Indicate element inside browser"

定位到剛才打的網(wǎng)頁(yè)的E-mail的字段。然后”Type Into”控件會(huì)自動(dòng)讀取E-mail的相應(yīng)信息。

修改相應(yīng)的參數(shù):
Display Name:輸入郵箱地址
Text:"12231@qq.com” –(輸入你要注冊(cè)的郵箱地址,注意要加雙引號(hào))
Activate:打勾
EmptyField:打勾
SimulateType:打勾

10、輸入密碼
?????? 點(diǎn)擊選中”Activities”面板

在搜索框輸入”Sequence”

把”Sequence”拖到”Register User”里面,放到”輸入郵箱地址”后面。

重新命名為”輸入密碼”

創(chuàng)建變量:Password
點(diǎn)擊選擇"Variables"面板

Name輸入"Password"
Variable type選擇"String"
Scope選擇"輸入密碼"

點(diǎn)擊選中” Activities”

在搜索框輸入”Get Password”

把”Get Password”拖拽到”輸入密碼”里面

修改相應(yīng)的參數(shù)
Password:輸入你的密碼
Result:輸入Password

點(diǎn)擊選擇”Activities”面板

在搜索框輸入”Type Into”

把”Type Into”拖拽到”輸入密碼”里面,”Get Password”后面,注意放的位置

如果有打開(kāi)IE瀏覽器,先把全部IE瀏覽器關(guān)閉,然后重新打開(kāi)IE瀏覽器,在地址欄輸入:https://acme-test.uipath.com/account/register

回到UiPath,點(diǎn)擊"Indicate element inside browser"

定位到剛才打的網(wǎng)頁(yè)的Password的字段。然后”Type Into”控件會(huì)自動(dòng)讀取Password的相應(yīng)信息。

修改相應(yīng)的參數(shù)
Display Name:密碼
Text:Password
Activate:打勾
EmptyField:打勾
SimulateType:打勾

11、重復(fù)輸入密碼
?????? 點(diǎn)擊選中”Activities”面板

在搜索框輸入”Sequence”

把”Sequence”拖到”輸入密碼”后面

重命名為”重復(fù)輸入密碼”

點(diǎn)擊選中”Activities”

在搜索框輸入”Get Password”

把”Get Password”拖到”重復(fù)輸入密碼”里面

修改相應(yīng)的參數(shù)
Password:輸入你的密碼
Result:輸入Password

點(diǎn)擊選中”Activities”

在搜索框輸入”Type Into”

把”Type Into”拖到”重復(fù)輸入密碼”里面,”Get Password”后面

如果有打開(kāi)IE瀏覽器,先把全部IE瀏覽器關(guān)閉,然后重新打開(kāi)IE瀏覽器,在地址欄輸入:https://acme-test.uipath.com/account/register

回到UiPath,點(diǎn)擊"Indicate element inside browser"

定位到剛才打的網(wǎng)頁(yè)的Retype Password的字段。然后”Type Into”控件會(huì)自動(dòng)讀取Retype Password的相應(yīng)信息。

修改相應(yīng)的參數(shù)
Display Name:重復(fù)密碼
Text:Password
Activate:打勾
EmptyField:打勾
SimulateType:打勾

12、同意網(wǎng)站注冊(cè)條款
?????? 點(diǎn)擊選中” Activities”

在搜索框輸入”Double Click”

把”Double Click”拖到”重復(fù)輸入密碼”后面

如果有打開(kāi)IE瀏覽器,先把全部IE瀏覽器關(guān)閉,然后重新打開(kāi)IE瀏覽器,在地址欄輸入:https://acme-test.uipath.com/account/register

回到UiPath,點(diǎn)擊"Indicate element inside browser"

定位到剛才打的網(wǎng)頁(yè)的”I agree with the Terms and Conditions of this website.”前面的復(fù)選框。然后”Double Click”控件會(huì)自動(dòng)讀取此復(fù)選框的相應(yīng)信息

13、注冊(cè)
?????? 點(diǎn)擊選中”Activities”

在搜索框輸入”Click”

把”Click”拖到”Double Click”后面

如果有打開(kāi)IE瀏覽器,先把全部IE瀏覽器關(guān)閉,然后重新打開(kāi)IE瀏覽器,在地址欄輸入:https://acme-test.uipath.com/account/register

回到UiPath,點(diǎn)擊"Indicate element inside browser"

定位到剛才打的網(wǎng)頁(yè)的”Register”按鈕。然后”Click”控件會(huì)自動(dòng)讀取Register的相應(yīng)信息。
