Basically, I'm making a programme that logs into the krispy kreme site and to test if login was successful, I am searching for a certain web element. I'm using selenium.
For debugging purposes, and also as I may need to use this in future aspects of the program, I am trying to save the Element into a variable and then re-output with
Console.WriteLine(), which works fine. When I try to use it in other scenarios e.g. If Statements. I get :
cannot convert selenium element to string.
How do I convert to a string? and store it in a new string variable.