public void ResizableObject() { var resizablePage = new ResizablePage(Driver); resizablePage.NavigateTo(); var elementH = resizablePage.GetSize().Height; var elementW = resizablePage.GetSize().Width; resizablePage.ResizeObject(); //Assert.That(_resizablePage.GetSize().Height, Is.InRange(elementH + 10, elementH + 50)); //Assert.That(_resizablePage.GetSize().Width, Is.InRange(elementW + 10, elementW + 50)); resizablePage.GetSize().Height.Should().BeInRange(elementH + 10, elementH + 50); resizablePage.GetSize().Width.Should().BeInRange(elementW + 10, elementW + 50); }