Configure DOM capture and replay for native applications