I am learning Selenium Webdriver and trying to write a simple test script.
The intent is to get the About Google
link on
Well as the Exception is clearly stating the problem here is that your Css Selector is not valid. 'You are trying to get the About Google
anchor tag based on it's text which is not a valid css selector'. It's more of a jQuery selector.
You could use the selector based on the value of href attribute as shown below and it will work fine.
#footer-list a[href*='about']
and use it like
WebElement aboutGoogle = driver.findElement(By.cssSelector("#footer-list a[href*='about']"));