Skip to content
This repository was archived by the owner on Jul 14, 2019. It is now read-only.
This repository was archived by the owner on Jul 14, 2019. It is now read-only.

customCommand not working due to invalid Native code #9

Open
@rogeriochaves

Description

@rogeriochaves

Hello!

I've tried to use customCommand, but it doesn't work, I noticed that an elm list end up being passed to the called function, i'm getting an error like this:

number or type of arguments don't agree with keys protocol command, value: {"ctor":"::","_0":"Escape","_1":{"ctor":"[]"}}

the problem is in this line: https://github.com/lorenzo/elm-webdriver/blob/master/src/Native/Webdriver.js#L395
we should convert it to a javascript array and use apply instead of call to execute the functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions