My script is working normally but when i am using function & descriptive programming its giving me result failed without any proper result. Attaching error screenshot.Attaching error screenshot
Script
systemutil.Run "http://ift.tt/2qgimPC"
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")
Function
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
Aucun commentaire:
Enregistrer un commentaire