I am sure there is an easier way but I just took the frameId and did a click and it worked.

/click StaticPopup1Button2