Ejemplo n.º 1
0
 public void SelectTwoFAVerificationOption(string option, string value)
 {
     try
     {
         if (option.ToLower().Contains("sms"))
         {
             //Assert.IsFalse(MobileNumText.GetAttribute("value").ToString().Contains(""), "Mobile number cant be blank for regitered user..");
             // MobileNumText.Clear();
             MobileNumText.EnterText(value);
         }
         else if (option.ToLower().Contains("authapp"))
         {
             AuthAppInput.MouseClick();
             GenerateQRCode.MouseClick();
             System.Threading.Thread.Sleep(10000);
         }
         else if (option.ToLower().Contains("email"))
         {
             EmailInput.MouseClick();
             System.Threading.Thread.Sleep(5000);
             EmailAddText.EnterText(value);
         }
     }
     catch (Exception e)
     {
         throw new Exception("Error while entering the text in .." + option + "Error received-" + e.Message);
     }
 }