示例#1
0
        // public static IWebDriver localdriver = BrowserManagement.localdriver;
        public static void loginMethod(string username, string password)
        {
            Common.Wait.WebDriverWait(Driver.driver, 30, "Xpath", "//input[@class='inputtext']");
            ExtenstionMethods.userinputs(Driver.driver, "Xpath", "//input[@class='inputtext']", username);
            ExtenstionMethods.userinputs(Driver.driver, "id", "pass", password);

            ExtenstionMethods.ButtonClick(Driver.driver, "Xpath", "//label[@id='loginbutton']/input");
            Driver.driver.Navigate().Back();
        }
示例#2
0
 public void SetMovie(SearchedMovie movie)
 {
     this.movie       = movie;
     title.text       = this.movie.title;
     releaseDate.text = this.movie.releaseDate;
     slider.value     = (float)(movie.voteAverage / 10f);
     votes.text       = $"{ExtenstionMethods.FormatNumber(movie.votesCount)} reviews";
     TextureBase.Instance.AddToQueue(movie.imageUrl, image);
 }
示例#3
0
 private async void SetUI()
 {
     title.text      = Movie.Title;
     relaseDate.text = Movie.ReleaseDate;
     votes.text      = "Votes: " + ExtenstionMethods.FormatNumber(Movie.VotesCount);
     slider.value    = (float)(Movie.VoteAverage / 10f);
     if (gameObject.activeInHierarchy)
     {
         TextureBase.Instance.AddToQueue(Movie.ImageUrl, image);
     }
     else
     {
         Debug.Log("activeInHierarchy: false");
         imageIsNotSet = true;
     }
 }
示例#4
0
    public void LoadMovieDetails(SavedMovieItem savedMovieItem)
    {
        var movie = savedMovieItem.Movie;

        SavedMovieItem = savedMovieItem;
        gameObject.SetActive(true);
        TextureBase.Instance.AddToQueue(movie.ImageUrl, image);
        TextureBase.Instance.AddToQueue(movie.BackdropUrl, backdropImage);
        starBar.value             = (float)(movie.VoteAverage / 10f);
        votes.text                = votes.text = $"{ExtenstionMethods.FormatNumber(movie.VotesCount)} reviews";
        titleTextField.text       = movie.Title;
        releaseDateTextField.text = movie.ReleaseDate;
        authorTextField.text      = movie.Author;
        descriptionTextField.text = movie.Description;
        noteTextField.text        = movie.Note;
    }