firefox = App.open("Firefox") with Region(firefox.window()): while not find(Pattern().similar(0.93)): sleep(1) click() click() popup("Rob just said something!")