1: <?php
2: namespace Azalea\Selenium\EHR\UI\Settings\General\Users;
3:
4: use \Azalea\Selenium\EHR\UI\Settings\General\UsersSection as UsersSection;
5:
6: class UserDetails extends \Azalea\Selenium\Core\View
7: {
8:
9: protected static $hash = "/settings/general/users/{id}/details";
10:
11: protected static $selector = "#users_details";
12: protected static $title = "";
13: protected static $title_selector = "";
14:
15: protected static $FIRST_NAME_TEXT_CSS = "#user_general_info tr:first-child td";
16: protected static $LAST_NAME_TEXT_CSS = "#user_general_info tr:nth-child(2) td";
17: protected static $EMAIL_TEXT_CSS = "#user_general_info tr:nth-child(3) td";
18: protected static $TITLE_TEXT_CSS = "#user_general_info tr:nth-child(4) td";
19:
20: 21: 22: 23: 24: 25: 26:
27: public function verify($args = array())
28: {
29: $this->byId("usr_account_details_body");
30: $this->byId("user_general_info");
31: return true;
32: }
33:
34: 35: 36: 37: 38: 39:
40: public function clickClose()
41: {
42: $this->byId("btn_close")->click();
43: return new UsersSection($this);
44: }
45:
46: 47: 48: 49: 50:
51: public function getFirstName()
52: {
53: return $this->byCss(self::$FIRST_NAME_TEXT_CSS)->text();
54: }
55:
56: 57: 58: 59: 60:
61: public function getLastName()
62: {
63: return $this->byCss(self::$LAST_NAME_TEXT_CSS)->text();
64: }
65:
66: 67: 68: 69: 70:
71: public function getEmail()
72: {
73: return $this->byCss(self::$EMAIL_TEXT_CSS)->text();
74: }
75:
76: 77: 78: 79: 80:
81: public function getTitle()
82: {
83: return $this->byCss(self::$TITLE_TEXT_CSS)->text();
84: }
85: }