1: <?php
2: namespace Azalea\Selenium\EHR\UI;
3:
4: class GridRow extends \Azalea\Selenium\Core\View
5: {
6: protected static $selector = "";
7:
8: public function __construct($rowSelector, $driver)
9: {
10: static::$selector = $rowSelector;
11:
12: parent::__construct($driver);
13: }
14:
15: public function getCell($index)
16: {
17: return $this->byCss($this->getSelector() . " td:nth-child(" . ($index + 1) . ")");
18: }
19:
20: public function clickRow($delay = 2)
21: {
22: return $this->clickAndWait($this->byCss(static::$selector), $delay);
23: }
24:
25: 26: 27: 28:
29: public function verify($args = array())
30: {
31: $this->byCss($this->getSelector($args));
32: return true;
33: }
34: }
35: