Evaluate Javascript in Browser

Hello all,

I am having trouble getting JavaScript execution to work with Browser. I am trying to use Evaluate JavaScript keyword.

I would like to check when page is loaded. If there is a better approach to that, suggestions are welcome. I tried with:

Wait Until Page is Loaded
    Evaluate JavaScript    selector=None    (elem) => while (document.readyState != "complete")

I get the following error:

Keyword ‘Browser.Evaluate JavaScript’ got unexpected named argument '(elem) '.

Can you help me figure how to use the keyword correctly please?