Hey there !!! I have been stuck in a process … Where I need to click the audio button in my chatbot and i need only my new message’s audio button to be clicked … I tried some of the activity but it clicks the older one even if there is a new message. I attach my screenshot of my chatbot and my selector for that audio button. kindly help me to get through it.
Nothing, just leave that empty. All you need to add is Selector and Output
In the selector for the click you will use the Output as an dynamic index.
To this - Create a string variable and assign children.count.toString to it(children is the output from Find Children activity). And in the selector that you currently have for the Click activity you exchange idx=‘2’ with idx=‘{{theStringVariableYouCreated}}’.
Sir i also checked that stringVar’s value by printing it . It actually returns 4 . but the Idx value what i clicked with click activity is 2 @Obsev sir
@Obsev yeah sir now it works fine, But its not giving the correct Idx value . i.e, Children value . If it returns correct it clicks the Microphone button and not clicking audio button sir
Go to AngryBot and write few messages and run the workflow, it will click the last response.
“AngryBot” doesn’t have that speaker icon so I cannot try it, but should work the same.
Yes but you just have to change the selector to click the icon, I just wanted to show the logic for index. Indicate the icon with the click activity and change the idx as in my example