Hi,
We are able to Click on SIGNIN object when directly using it without any function. But are not able to do anything after
using function.
========================================================================================================
ZAP File without using function:
Launch “chrome”, “http://www.jio.com/”
Application(“Jio”).View(“HomePage”).Object(“Jio”).Exist
Application(“Jio”).View(“HomePage”).Object(“SIGNIN”).Click
========================================================================================================
ZAP File with function:
Launch “chrome”, “http://www.jio.com/”
set obj1=Application(“Jio”).View(“HomePage”).Object(“Jio”)
set obj2=Application(“Jio”).View(“HomePage”).Object(“SIGNIN”)
function CheckAndClick(obj1,obj2)
If obj1.Exist then
obj2.Click
End If
end function
========================================================================================================
Can you please check and let us know how to set functions correctly.