Exemplo n.º 1
0
        public IWebElement GetCardByName(string name)
        {
            var split    = name.Split();
            var cardName = string.Join("+", split);

            return(Map.Card(cardName));
        }
Exemplo n.º 2
0
 public Element GetCardByName(string cardName)
 {
     if (cardName.Contains(" "))
     {
         cardName = cardName.Replace(" ", "+");
     }
     return(Map.Card(cardName));
 }
Exemplo n.º 3
0
 public IWebElement Get_CardByName(string CardName)
 {
     if (CardName.Contains(" "))
     {
         CardName = CardName.Replace(" ", "+");
     }
     return(Map.Card(CardName));
 }
Exemplo n.º 4
0
        public IWebElement GetCardByName(string cardName)
        {
            // Given the cardName "Ice Spirit" => should turn into "Ice+Spirit" to work with our locator.
            if (cardName.Contains(" "))
            {
                cardName = cardName.Replace(" ", "+");
            }

            return(Map.Card(cardName));
        }
Exemplo n.º 5
0
        public IWebElement GetCardByName(string cardName)
        {
            if (cardName.Contains(" "))
            {
                cardName = cardName.Replace(" ", "+");
            }
            var result = Map.Card(cardName);

            return(result);
        }
Exemplo n.º 6
0
        public IWebElement GetCardByName(string cardName)

        {
            // Golem, Ice Spirit => Ice+Spirit
            if (cardName.Contains(" "))
            {
                cardName = cardName.Replace(" ", "+ ");
            }
            return(Map.Card(cardName));
        }
Exemplo n.º 7
0
        public IWebElement GetCardByName(string cardName)
        {
            var formattedName = cardName;

            if (cardName.Contains(" "))
            {
                formattedName = cardName.Replace(" ", "+");
            }

            return(Map.Card(formattedName));
        }