Closed Bug 1255220 Opened 9 years ago Closed 9 years ago

Firefox sometimes returning before loadEventEnd when run via WebDriver

Categories

(Firefox :: Untriaged, defect)

45 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: clmartin, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/14.14284 Steps to reproduce: 1. Launch Firefox w/ WebDriver 2. Navigate to a page (my case was https://www.brainpop.com/) 3. Execute Script - return performance.timing.loadEventEnd - performance.timing.navigationStart; static void SiteLoadTime(string site, string browser, RemoteWebDriver driver) { for (int i = 0; i < iterations; i++) { driver.Manage().Window.Maximize(); driver.Url = site; var timing = driver.ExecuteScript("return performance.timing.loadEventEnd - performance.timing.navigationStart;"); var result = Convert.ToInt32(timing); // This line will throw as the value will be larger than an Int32 is allowed to be } } Actual results: Occaisionally getting a large negative value, looks like LoadEvent is either 0 or null. Values like: -1457567313787 Expected results: A positive ms value representing page load time. It happens occasionally but not every time.
You may want to report the issue to the Selenium team instead.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.