Find text on a page and click next to it

Not to solve the OP's problem but to illustrate how you might drive Firefox from Keyboard Maestro, I uploaded the following test macro: