Can we replace this with a waitForSelector('.. something in setpermissions ..'