CheshireCaat / bas-remote-node

NodeJS library, which allows you to automate Google Chrome browser.
MIT License
28 stars 7 forks source link

Exception while trying to stop function. #4

Closed bablosoft closed 4 years ago

bablosoft commented 4 years ago
    const options = {
        scriptName: 'TestRemoteControl'
    };

    const client = new BasRemoteClient(options);

    await client.start();

    var promise1 = client.runFunction('GoogleSearch', {Query: 'cats'});

    promise1.Stop(); //stop also doesn't work

    await promise1;

    await client.close();

Following code will throw exception

UnhandledPromiseRejectionWarning: TypeError: promise1.Stop is not a function

Also, can you rename Stop method to stop

bablosoft commented 4 years ago

Works ok in 1.0.9