Cannot indicate button elements with strict selector

@Anil_G

That still won’t work because checking the pending state will also need an identifier as there could be several pending buttons before which case we are looping through the exact same issue of the connect button.

But forget it as I’ve come up with a clever solution that will solve both issues, whether the connect button disappears or does not disappear. What needs to be done is to use an idx=‘default variable(1)’, and upon clicking on the send button, I’ll add a check app state to check if the error appears. If the error does not appear, it will iterate through connect button 2 without changing the idx number. However, if the error appears, then it will replace the current variable by incrementing to +1, so the idx will become 2 in this case and so on. I still need to look how to implement this though. Thanks for your help anyways. Will mark this as solved.

1 Like