/// <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); }
/// <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); }