vbscript - Wrong number of arguments or invalid property assignment error in hp UFT -


set parentobject=browser("title:=sign-in").page("title:=sign-in home page") propertyrequired="name" propertyvalue="agree , login" result="yes"   function webbutton(parentobject,propertyrequired,propertyvalue,result) call reportresult(result) dim hit hit=0    if propertyrequired=""        propertyrequired="name"    end if   if parentobject.webbutton(propertyrequired &":="&propertyvalue).exist       parentobject.webbutton(propertyrequired &":="&propertyvalue).click      hit=1  end if  if hit>0     reporter.reportevent micpass,"the button: "&propertyvalue,"clicked    sucessfully" else     reporter.reportevent micpass,"the button: "&propertyvalue,"not clicked sucessfully" end if end function 

after call function, error " wrong number of arguments or invalid property assignments" displayed.

call webbutton(parentobject,propertyrequired,propertyvalue,result)   

i executed piece of code .i dont find issues .


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -