public void ResizableConstrainedItem_ResizeSidesMoreThanConstraints_ItemResizeConstrainedByConstraints() { var resizablePage = new ResizablePage(this.driver); // Get the current test method name and use it as a Key in the xlsx file InteractionPages resize = AccessExcelData.GetInteractionTestsData(TestContext.CurrentContext.Test.Name); // 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.IncreaseWidthAndHeightBy3(int.Parse(resize.HorizontalOffset), int.Parse(resize.VerticalOffset)); resizablePage.AssertResizableSizeSmallerThanOrEqualToConstraints(resizablePage.resizableElementTab5, resize); }