Esempio n. 1
0
 public CreateAlbumPage CrearAlbum(Album album)
 {
     foreach (var input in AllForm)
     {
         input.Clear();
     }
     Thread.Sleep(1000);
     NameInput.SendKeys(album.Name);
     Thread.Sleep(1000);
     ArtistInput.SendKeys(album.Artist);
     Thread.Sleep(1000);
     YearInput.SendKeys(album.Year.ToString());
     Thread.Sleep(1000);
     GenresInput.SendKeys(album.Genres);
     Thread.Sleep(1000);
     SubGenresInput.SendKeys(album.SubGenres);
     Thread.Sleep(1000);
     return(this);
 }
Esempio n. 2
0
        public UpdateAlbumPage UpdateAlbum(Album album)
        {
            Thread.Sleep(1000);
            AlbumNameInput.Clear();
            AlbumNameInput.SendKeys(album.Name);
            Thread.Sleep(1000);
            AlbumArtistInput.Clear();
            AlbumArtistInput.SendKeys(album.Artist);
            Thread.Sleep(1000);
            AlbumYearInput.Clear();
            AlbumYearInput.SendKeys(album.Year.ToString());
            Thread.Sleep(1000);
            GenresInput.Clear();
            GenresInput.SendKeys(album.Genres);
            Thread.Sleep(1000);
            SubGenresInput.Clear();
            SubGenresInput.SendKeys(album.SubGenres);

            return(this);
        }