Unexpected character "

For some reason I am getting an error message Unexpected character " however it doesn't actually underline any of my code in read. I tried cleaning and rebuilding it but that hasn't worked. It says it's on line 49.

My code is as follows

By maximizeBy = By.Name("Maximize");
webDriverWait.Until(ExpectedConditions.ElementExists(maximiz‌​eBy));

Line 49 below

webDriverWait.Until(ExpectedConditions.ElementToBeClickable(‌​
    excelSession.FindEle‌​ment(maximizeBy))).Cl‌​ick();
Jon Skeet
people
quotationmark

You've got two "odd" characters within FindElement - U+200C (zero-width non-joiner) and U+200B (zero-width space) between the first "e" and the "m". The same characters occur in "Click" between the "l" and the "i".

Just delete and retype those words and the error should go away. It's not clear how you ended up with those characters, admittedly...

people

See more on this question at Stackoverflow