public void VerifyClickedElementChangeClass([Values] DriverType type) { InizializeAndGoToStepOne(type); ShapesRoomWCModel shapes = shapeServices.GetShapes(); Assert.IsTrue(shapes.ClickingOnTheShapes()); }
public void CheckingTheClassChangeForTheElementAfterChangingTheDimensionsOnTheDependentWall([Values] DriverType type) { InizializeAndGoToStepOne(type); ShapesRoomWCModel shapes = shapeServices.GetShapes(); shapes.ClickShapeById("27"); DimensionsWCModel roomDimension = dimensionServices.GetDimensions(); roomDimension.GetFieldByDescription("A").PlusSign.ClickIfElementIsClickable(Manager.Driver); Assert.IsTrue(roomDimension.GetFieldByDescription("C").Input.GetAttribute("class").Equals("wallSizeInput changed")); }
public void VerifyingModelRoomChangeAfterChangeShape([Values] DriverType type) { InizializeAndGoToStepOne(type); ShapesRoomWCModel shapes = shapeServices.GetShapes(); shapes.ClickShapeById("27"); Room3DWCModel roomView = roomViewServices.Get3DModel(); var dimensionRoomView = roomView.Room3dImageDimension; shapes.ClickShapeById("28"); Room3DWCModel roomAfterChangeShape = roomViewServices.Get3DModel(); var dimensionAfterChangeShape = roomAfterChangeShape.Room3dImageDimension; Assert.AreNotSame(roomView.Room3dImageDimension, roomAfterChangeShape.Room3dImageDimension); Assert.AreNotEqual(dimensionRoomView, dimensionAfterChangeShape); }
/// <summary> /// Metoda budująca model listy kształtów pomieszczeń. /// </summary> /// <returns></returns> public ShapesRoomWCModel GetShapes() { var shape_id = _manager.FindWebElementsAndWait(By.XPath(DimensionElementsLocators.ShapeidLocator)); var header = _manager.FindWebElementAndWait(By.XPath(ShapeElementsLocators.ShapeHeaderLocator)); ShapesRoomWCModel listOfShapes = new ShapesRoomWCModel(_manager.Driver); listOfShapes.Header = header ?? (header = null); for (int i = 0; i < shape_id.Count; i++) { { listOfShapes.Shapes.Add(new ShapeRoomWCModel { ShapeOfRoom = shape_id[i], }); } } return(listOfShapes); }