feat: migrated to wd promise api
Merge pull request #23 from sebv/wd-promise

Fixed code to use wd promise api