1: <?php
2: namespace Azalea\Selenium\EHR\UI\Settings\General\Roles;
3:
4: use \Azalea\Selenium\EHR\UI\PopupConfirm as PopupConfirm;
5:
6: class RoleRow extends \Azalea\Selenium\EHR\UI\GridRow
7: {
8:
9: protected static $selector = "";
10: protected static $title = "";
11: protected static $title_selector = "";
12:
13: 14: 15: 16:
17: public function verify($args = array())
18: {
19: $this->byCss(static::$selector . " td.rol_name");
20: $this->byCss(static::$selector . " td.rol_id");
21: return true;
22: }
23:
24: public function getName()
25: {
26: return $this->byCss(static::$selector . " td.rol_name")->text();
27: }
28:
29: public function clickEdit()
30: {
31: $this->byCss(static::$selector . " td.rol_id .edit span")->click();
32:
33: }
34:
35: public function clickDelete()
36: {
37: $this->byCss(static::$selector . " td.rol_id .delete span")->click();
38:
39: $popup = new PopupConfirm($this);
40: $popup->confirm();
41: $this->wait(2);
42: }
43: }