Question: I am new to testing and have a question about how can we verify the local language using Selenium. Suppose that I have some link which lets me choose the language, so if I choose a language how can I verify that?

Answer: 
By anything on the page! Let's assume our page is only made of one element, either

```
<div>
    It's time to kick ass and chew bubble gum!
</div>

```

or

```
<div>
    Il est temps de botter le cul et mâcher de la gomme à bulles!
</div>

```

Then, with Selenium, you can get the element, get the inner text and verify! Example in Java:

```
// assuming driver is a good WebDriver instance
WebElement elem = driver.findElement(By.xpath("//div"));
if (elem.getText().contains("kick ass")) {
    System.out.println("It's English!");
} else if (elem.getText().contains("botter le cul")) {
    System.out.println("It's French!");
}

```

As of Java 7, you can even use a switch-case on a String, so you can digestedly test against many, many languages.
```
<!-- Using Selenium IDE -->
<tr>
<td>storeAttribute</td>
    <td>//html@lang</td>
    <td>language</td>
</tr>
<tr>
    <td>echo</td>
    <td>The label is ${language}</td>
    <td></td>
</tr>

```