DEV Community

Discussion on: Extending Flutter Driver with custom commands

Collapse
 
phamnhuvudev profile image
Phạm Như Vũ

Flutter Driver supports a handful of API’s to communicate with the running app. For example getText, tap, waitFor etc. For me, coming from Nightwatch.js

Can you share the example or the document?
I tried connect via WebSocket successful

WebSocket("ws://127.0.0.1:46095/gB24YUnAp90=/ws")
Enter fullscreen mode Exit fullscreen mode

Then call send a tap command but don't work.

ws.send(JSON.stringify({
    command: "tap",
    finderType: "ByValueKey",
    keyValueString: "increment",
    keyValueType: "String"
}));
Enter fullscreen mode Exit fullscreen mode