Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 17th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to assign the text box value to a variable
  2. var checkEmail = driver.FindElement(By.Id("Email"));
  3.          string foundEmail = checkEmail.Text;
  4.          string selectedEmail = "t@test.com";
  5.          Assert.AreEqual(foundEmail, selectedEmail);