i using selenium try to get the div class value in html, but i hit the problem as per below 

```
invalid selector: Unable to locate an element with the xpath expression //div[contains(., 'Medium') because of the following error:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string '//div[contains(., 'Medium')' is not a valid XPath expression.

```

Below is my html and my code that read value of html.

HTML:

![enter image description here](https://i.stack.imgur.com/Aup2w.png)

Code trials:

```
IWebElement element = driver.FindElement(By.XPath("//div[contains(., 'Medium')"));
String text =   element.GetAttribute("text");
Console.WriteLine(text);

```