我的脚本正常工作但是当我使用功能&描述性编程它给我的结果失败而没有任何正确的结果。
附加错误屏幕截图:
脚本
systemutil.Run "www.tokri.com/siteadmin"
executefile "C:\Users\tusha\Documents\Automation\Automation\Function_library\Tokri_Function\tokri_class.qfl"
Set oh = new tokri
oh.tokri_webedit("Tokri Login" , "username" , "xyz")
功能
Class tokri
'WebEdit Function
Function tokri_webedit(br,we,v)
If Browser("title := "&br).Page("title:="&br).WebEdit("name:="&we).Exist Then
Browser("title := "&br).Page("title:="&br).WebEdit("name:="&we).Set v
reporter.ReportEvent micPass , "Success", "Data Entry Successfull"
else
reporter.ReportEvent micFail , "Fail" , "Object Identification Unsuccessfull"
End If
tokri_webedit = "Data Entered Successfully In Textbox"
End Function
End Class