/** * Method finds labels by name. * * @param grid of comments * @param index of grid * @param name locator * @return list of labels */ public static ILabel getByName(final Grid grid, final int index, final String name) { return get(grid, index, ControlLocation.getByName(name)); }
/** * Method finds label by css. * * @param labelSelector locator * @return get label by css */ public static ILabel getByCss(final String labelSelector) { return get(ControlLocation.getByCss(labelSelector)); }
/** * Method finds label by id. * * @param id locator * @return get label by id */ public static ILabel getById(final String id) { return get(ControlLocation.getById(id)); }
/** * Method finds label by name. * * @param name locator * @return get label by name */ public static ILabel getByName(final String name) { return get(ControlLocation.getByName(name)); }
/** * Method finds label by xpath. * * @param xpathExpression locator * @return get label by xpath */ public static ILabel getByXpath(final String xpathExpression) { return get(ControlLocation.getByXPath(xpathExpression)); }
/** * Method finds label by class name. * * @param className locator * @return get label by class name */ public static ILabel getByClassName(final String className) { return get(ControlLocation.getByClassName(className)); }
/** * Method finds grid by class name. * * @param className locator * @return get grid by class name */ public static Grid getByClassName(final String className) { return getGrid(ControlLocation.getByClassName(className)); }
/** * Method finds grid by css. * * @param cssExpression locator * @return get grid by css */ public static Grid getByCss(final String cssExpression) { return getGrid(ControlLocation.getByCss(cssExpression)); }
/** * Method finds grid by xpath. * * @param xpathExpression locator * @return get grid by xpath */ public static Grid getByXpath(final String xpathExpression) { return getGrid(ControlLocation.getByXPath(xpathExpression)); }