I've located an element correctly by using the following XPath...
//a[@class=\"desktop-categoryLink\"][@data-reactid="30"]
But when I paste this in my eclipse it looks like below...
driver.findElement(By.xpath("//a[@class=\"desktop-categoryLink\"][@data-reactid=\"30\"]")).click();
Then I removed the two '\' before and after 30..then it shows an error like "The left-hand side of an assignment must be a variable"..Guys how can I resolve this?