sclevine / agouti

A WebDriver client and acceptance testing library for Go
MIT License
822 stars 105 forks source link

cannot use "tools/vendor/github.com/sclevine/agouti".Capabilities literal (type "tools/vendor/github.com/sclevine/agouti".Capabilities) as type "github.com/sclevine/agouti".Capabilities in argument to appium.Desired #169

Closed chenliejun closed 5 years ago

chenliejun commented 6 years ago

cannot use "tools/vendor/github.com/sclevine/agouti".Capabilities literal (type "tools/vendor/github.com/sclevine/agouti".Capabilities) as type "github.com/sclevine/agouti".Capabilities in argument to appium.Desired

please tell me how to solve this, thanks,the code is like this:

var ( options = app.Desired(agouti.Capabilities{ "platformName": "Android", "platformVersion": "8.1.0", "deviceName": "", "automationName": "UiAutomator2", "app": "", "noReset": true, }) )

wd := app.New(options)