public static void pressButtonByText(DialogComponentProvider provider, String buttonText) {
		pressButtonByText(provider.getComponent(), buttonText, true);
	}
Finds the button with the indicated TEXT that is a sub-component
of the indicated container, and then programmatically presses
the button.
<BR>The following is a sample JUnit test use:
<PRE>
	env.showTool();
	OptionDialog dialog = (OptionDialog)env.waitForDialog(OptionDialog.class, 1000);
	assertNotNull(dialog);
	pressButtonByText(dialog, "OK");
</PRE>

@param provider the DialogComponentProvider containing the button.
@param buttonText the text on the desired JButton.
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java