I am trying to print the Parameter itself on console. my sample codes are like this:
it('should print the parameter value', async function(){
expect (PO.printParameterandDoSomethingElse(myElement1)).toBe(true);
}
the Page object is :
this.printParameterandDoSomethingElse = async function(ele){
console.log(ele)
//do something
//do something else
//return output
}
I was hoping to get "MyElement1" printed , but, in this code the console is printing "[object Object]" instead of the parameter itself (MyElement1). I found a discussion in the github thread where another user had the same problem but I could not find her SO thread. Is there a way to achieve this?