Example #1
0
        /// <summary>
        /// Sets the sex field to a given sex.
        /// </summary>
        /// <param name="sex">sex to use</param>
        /// <returns>current add form for chaining</returns>
        public AddPokemonForm WithSex(string sex)
        {
            ElementHelpers.ClickFirstElementById("SelectedSexId");

            ElementHelpers.ClickFirstElementByXPath(string.Format(Constants.OptionWithTextXPath, sex));

            return(this);
        }
Example #2
0
        /// <summary>
        /// Sets the Pokeball field to a given pokeball.
        /// </summary>
        /// <param name="pokeball">pokeball to use</param>
        /// <returns>current add form for chaining</returns>
        public AddPokemonForm WithPokeball(string pokeball)
        {
            ElementHelpers.ClickFirstElementById("SelectedPokeballId");

            ElementHelpers.ClickFirstElementByXPath(string.Format(Constants.OptionWithTextXPath, pokeball));

            return(this);
        }