public void Movetowards(Moveto movetoward, int numSteps) { Coord movetowards = OfficeFloor.Movetowards(movetoward); for (int i = 0; i < numSteps; i++) { CurrentPos = new Coord(_currentPos.XPos + movetowards.XPos, _currentPos.YPos + movetowards.YPos); } }
public static void ClickPestaEmpledo(IWebDriver driver, string a) { Click.On(driver, UI.GetEduEmpleos()); Thread.Sleep(Literales.TimemMed); Click.ScreenCap(driver); Thread.Sleep(Literales.TimemMed); Click.On(driver, UI.GetSeleccPuesto()); Thread.Sleep(Literales.TimemMed); Moveto.MovetoElemeten(driver, UI.GetPuesto()); Thread.Sleep(Literales.TimemMed); Click.On(driver, UI.GetPuesto()); Thread.Sleep(Literales.TimemMed); String b = driver.FindElement(UI.GetTestingqa()).Text; Assert.AreEqual(a, b); }
public static void SelectBenef(IWebDriver driver) { Moveto.MovetoElemeten(driver, UI.GetCategorias()); Moveto.MovetoElemeten(driver, UI.GetTecnologia()); Click.On(driver, UI.GetTelevisores()); }
public static Coord Movetowards(Moveto moveto) { return(_floorMapCoord[moveto]); }
public MoveCmd(Moveto moveto, int numsteps) { _moveto = moveto; _numsteps = numsteps; }