Can't store a list of elements to create assertions

Thank you so so much for the “in depth” code explanation.

One last thing : Why did you write like this .innerText', []) why is that , [] necessary?

Because you will see that WebUI.executeJavaScript takes in the following parameters:

String script
List arguments

You have to give the List of arguments, otherwise you will get an error, but I just give it an empty list of arguments by writing []

1 Like

Oh alright !!!
Thank you so much for the explanations !!

2 Likes