Issue #21477: Add htests for Search and Replace dialogs.
Patch by Saimadhav Heblikar.