This is brittle. What if more than one button group exists in the document?