编译脚本.步骤方法

定义

将脚本聚合并进一步逻辑划分到部分的方法,包括报表中的逻辑划分。

public virtual void Step(int StepID, string StepDescription)

参数

 StepID  int

 步骤说明  字符串

例子

Tabs.SetSize (1645, 438);
DMBrowser tab0 = null;
Step (1, "Check Phone Number Availability Online » Phone Number Monitoring - https://www.phonenumbermonitoring.com/");
tab0 = Tabs.NewTab ();
tab0.GoTo ("https://www.phonenumbermonitoring.com/");
tab0.Link ("//A[normalize-space(@TITLE)=\"Client Login\"]", "(//A[normalize-space(text())=\"Client Login\"])[1]", "/HTML/BODY/DIV[1]/DIV/HEADER/DIV[2]/DIV/DIV/DIV/DIV/DIV/A").Click ();
Step (2, "Login to Phone Number Monitoring - https://user.phonenumbermonitoring.com/");
tab0.Navigating ("https://user.phonenumbermonitoring.com/guest/ClientLogin.aspx");
tab0.TextField ("//INPUT[@ID=\"txtLogin\"]", "(//INPUT[@TYPE=\"text\"])[1]", "//A[normalize-space()=\"Forgot login?\"]/..//INPUT").Click ();