嗨,我是新來的uft和vbs我想要做的是從webelement中獲取密碼,並從中獲取帳號我將字符串拆分爲一個數組並知道會出現什麼字詞在文本中,我想選擇隨機生成的帳號。我的問題是,我在if語句的「應用程序」中找到erro0r,其中說:對象需要UFT/VBS
Object required:'Application' Line(60):「If Arry(i).ToString <>(」Application「或「號碼」)然後「。
我不知道如何繼續這個,所以任何幫助將appricated。
App_Num = oPage_Account.WebElement("Application
Number").GetROProperty("innertext")
sDelimiter = " "
Arry = Split(App_Num, sDelimiter) 'Split the string by the spaces
iLoop = UBound(Arry) 'Find the size of the array
For i = 0 to iLoop ' loop to see if accepted
If Arry(i).ToString <> ("Application" or "Number") Then
App_Num = Arry(i)
Reporter.ReportEvent micDone, "Account Num", "Account Number is Assigned"
End If
Next
This works great Thx :) – John
歡迎你:) – Gurman