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(maximizeBy));
Line 49 below
webDriverWait.Until(ExpectedConditions.ElementToBeClickable(
excelSession.FindElement(maximizeBy))).Click();
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...
See more on this question at Stackoverflow