|
用GetField做
/*Coding Dummy*/
[+] BrowserErrorPage.HtmlText("Invalid user name or authentication credential(s). Please try again. For Development onlyTask: com.ffusion.tasks.bankemployee.*|#3").VerifyProperties ({...})
[ ] ""
[-] {...}
[ ] //{"Text", "Invalid user name or authentication credential(s). Please try again.For Development onlyTask: com.ffusion.tasks.bankemployee.SignOnBankEmployee@7883d39e Task Error Code: 19002 Error Resource: com.ffusion.services.errors"}
[ ]
string sExpect
string sActual
string sLoop
sExpect = "Invalid user name or authentication credential(s)"
sExpect = sExpect + "."
sExpect = sExpect + "Please try again"
sExpect = sExpect + "."
sLoop = BrowserErrorPage.HtmlText.GetText ()
sActual = GetField (sLoop, ".", 1) // 以“.” 作为分割符,取第一字段,即“Invalid user name or authentication credential(s)”,下同。
sActual = sActual + "."
sActual = sActual + GetField (sLoop, ".", 2)
sActual = sActual + "."
Verify (sExpect, sActual)
/* End Coding Dummy */
你在根据需要修改一下,再试试吧。 |
|