I'm trying to choose elements in "Category" one-by-one on [this page](http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellTable) with:

```
WebElement category = new WebDriverWait(driver, 10)
                .until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.cssSelector("tr[__gwt_row='" + rowIndex + "'] > td > div")))
                .get(3);

        category.click();
        category.findElement(By.tagName("select")).sendKeys("Businesses");
        category.click();
        category.findElement(By.tagName("select")).sendKeys("Contacts");

```

Throwing this : "stale element reference: element is not attached to the page document"

Maybe exists some another way to do it?

UPD: 
It works if i do this:

```
 WebElement categoryBusinesses = new WebDriverWait(driver, 10)
                .until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.cssSelector("tr[__gwt_row='" + rowIndex + "'] > td > div")))
                .get(3);

        categoryBusinesses.findElement(By.tagName("select")).sendKeys("Businesses");

 WebElement categoryContacts = new WebDriverWait(driver, 10)
                .until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.cssSelector("tr[__gwt_row='" + rowIndex + "'] > td > div")))
                .get(3);

        categoryContacts.findElement(By.tagName("select")).sendKeys("Contacts");

```

But is it a right way?

UPD2: 
I also tried this:

```
 WebElement element = categoryBusinesses.findElement(By.tagName("select"));
        Select category = new Select(element);
        category.selectByIndex(0);
        category.selectByIndex(1);

```

But it not works.