codeforequity-at / botium-core

The Selenium for Chatbots - Bots Testing Bots
https://www.botium.ai
MIT License
229 stars 64 forks source link

Unable to capture button or image in bot response #110

Closed DipaliK9 closed 6 years ago

DipaliK9 commented 6 years ago

Hi, My bot is based on MS bot framework And I am using FBdirect (Botium-CLI +Testmybot) to automate my bot. But when Bot response consists of image or button, it says undefined. Please help.

codeforequity-at commented 6 years ago

The FBDirect mode is based on a library called "facebook-chat-api", which is not officially supported by Facebook (as it just mimics the traffic happening between the Facebook Frontend and Backend). So the last months it turned out that this is not a good, stable way for testing facebook chatbots.

We are currently working on a Selenium-based connector, which will solve those problems (when ready). There are already some samples available here: https://github.com/codeforequity-at/botium-connector-webdriverio

codeforequity-at commented 6 years ago

By the way, for MS Botframework, the directline3 connector would be the best option you have.

DipaliK9 commented 6 years ago

As you suggested I set up directline 3 connector for testing purpose. And I am still getting the response undefined with the error message

`Error: Body-Dry/Line 292: bot response "[object Object]" missing expected property: senderID at _.forOwn'

Am I missing anything?

DipaliK9 commented 6 years ago

There was issue with my convo file. I updated file and it worked for me. It captures image also. Thanks for your help. :)