1: <?php
2: namespace Azalea\Selenium\EHR\UI\Settings\General\Roles;
3:
4: use Azalea\Selenium\EHR\UI\Settings\General\RolesSection as RolesSection;
5:
6: class RoleCreatePopup extends \Azalea\Selenium\EHR\UI\Popup
7: {
8: protected static $selector = "#roles_add_popup";
9:
10: 11: 12: 13:
14: public function setName($name)
15: {
16: $this->byCss(static::$selector . " #rol_name")->value($name);
17: return $this;
18: }
19:
20: 21: 22:
23: public function clickSave()
24: {
25: $this->clickAndWait($this->byCss(static::$POPUP_BUTTONS . " button:first-child"), 2);
26:
27: return new RolesSection($this);
28: }
29:
30: 31: 32: 33:
34: public function verify($args = array())
35: {
36: $this->byCss(static::$selector . " #rol_name");
37: $this->byCss(static::$POPUP_BUTTONS);
38: return true;
39: }
40: }
41: ?>