I have to compare a string from an element extracted from the Selenium with a string read from file. All the things work great, but when i need to compare between these 2 string, it doesn’t work as expected:
string a = "a. Check map, Help, Activate function "Robbery""; // Read from file
string b = "Check map, Help, Activate function "Robbery""; // Extracted from Selenium
I have used Contains, IndexOf, Regex to check if string a contains string b, but all that return false. I have try to run it in a simple program outside my context and that return true.It only happen in the context when i run Selenium to extract text and compare with a string read from file. Am i wrong in comparing string in Selenium? I am sure that the above two strings are copied completely correctly, without any extra or missing words