Multi types buttons

Hello and thanks for your help guys!

I am looking to click on connection button (button 1) then validate this connection in a popup (pop 1). After few demands, I may have to deal with a popup 2 with a choice 1 and a validation button (button 2).

Here is the code I was able to put in place to accomplish the first part of the sequence: problem, it counts the variables for me instead of pressing the button and I absolutely do not see how to write the sequence of commands.

Does anyone know what commands I could use?

change Line 3 to this

XClick | ocr=Se connecter |