NXP-12228: adapt selenium hooks that detect if the ajax request is done