Non-polymer dialogs also set `primary` on the respective buttons after my yesterdays commit. So it should be just:

`focusElementByQuery(".primary");`