codeforequity-at / botium-core

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

How to override userAgent context in botium #688

Closed ram-d closed 2 years ago

ram-d commented 2 years ago

Hi,

Our chatbot sets the userAgent context to web or mobile based on how the chat is invoked. By default, botium sets the userAgent context as web. Setting the userAgent context in botium.json file with 'mobile' does not help as it still gets overwritten by the chat api. How to set this value dynamically to 'mobile' in order to test the mobile experience using botium?

Thank you! Ram

ram-d commented 2 years ago

I am good with this now. I was able to set the context in the java script file.