Did you try something like waitForElementByElement on a header element or something to make sure the page is loaded before trying to delete the video?