officejs_ui_test: use clickAndWait in xhtml_style

The previous pattern of using click and then pause is fragile and seems
to be the cause for test failures.
1 job for for_testrunner_1
in 0 seconds, using 0 compute credits, and was queued for 0 seconds