}
@Test
public void testRecordWindowTagOnSelect() {
MButton button = new MButton(new JButton("text"), "button1", null, WindowMonitor.getInstance());
WindowId windowId = new WindowIdMock("dialog1");
button.setWindowId(windowId);
recorder.record(new MockRecordedSelect(button.getComponentId(), windowId, "text"));
AWTSync.sync();
assertScriptEquals(i1 + "if window('dialog1'):\n" + i2 + "select('button1', 'text')\n" + i1 + "close()\n");
}