Make setText smarter and fix browser harness exec def