import org.openqa.selenium.Keys;
import org.openqa.selenium.interactions.Actions;
+import com.vaadin.testbench.elements.GridElement.GridCellElement;
import com.vaadin.testbench.elements.GridElement.GridRowElement;
import com.vaadin.tests.components.grid.basicfeatures.GridBasicClientFeaturesTest;
selectMenuPath("Component", "State", "Selection mode", "single");
GridRowElement row = getGridElement().getRow(0);
- row.click();
+ GridCellElement cell = getGridElement().getCell(0, 0);
+ cell.click();
assertFalse("disabled row should not be selected", row.isSelected());
-
}
@Test
public void testEditorOpening() {
selectMenuPath("Component", "Editor", "Enabled");
-
GridRowElement row = getGridElement().getRow(0);
- row.click();
+ GridCellElement cell = getGridElement().getCell(0, 0);
+ cell.click();
assertNull("Editor should not open", getEditor());
new Actions(getDriver()).sendKeys(Keys.ENTER).perform();
assertNull("Editor should not open", getEditor());
}
-}
+}
\ No newline at end of file
import org.openqa.selenium.Keys;
import org.openqa.selenium.interactions.Actions;
+import com.vaadin.testbench.elements.GridElement.GridCellElement;
import com.vaadin.testbench.elements.GridElement.GridRowElement;
import com.vaadin.tests.components.grid.basicfeatures.GridBasicFeaturesTest;
selectMenuPath("Component", "State", "Selection mode", "single");
GridRowElement row = getGridElement().getRow(0);
- row.click();
+ GridCellElement cell = getGridElement().getCell(0, 0);
+ cell.click();
assertFalse("disabled row should not be selected", row.isSelected());
}
selectMenuPath("Component", "Editor", "Enabled");
GridRowElement row = getGridElement().getRow(0);
- row.click();
+ GridCellElement cell = getGridElement().getCell(0, 0);
+ cell.click();
assertNull("Editor should not open", getEditor());
new Actions(getDriver()).sendKeys(Keys.ENTER).perform();