public void ResizableConstrainedItem_ResizeSides_ItemResizeConstrainedByContainer() { var resizablePage = new ResizablePage(this.driver); // Get the tab number (e.g. "Default functionality", Constrain movement") from the test property above and give it to the URL resizablePage.tabNo = TestContext.CurrentContext.Test.Properties.Get("Resizable test tab Number:").ToString(); resizablePage.NavigateTo(resizablePage.URL); // Scroll page Up so the element is into view. Because when Firefox opens the desired page/tab, somehow the page is scrolled down ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView(true);", resizablePage.TopOfPage); resizablePage.IncreaseWidthAndHeight(); resizablePage.AssertResizableSizeSmallerThanContainer(resizablePage.resizableElementTab3); }