1 | <?php |
||
9 | class Twitter extends AbstractConfigurableElement implements BaseThemeInterface |
||
10 | { |
||
11 | |||
12 | public $homeXpath = '//a[@data-nav="home"]'; |
||
13 | public $guaranteedPageLoadedElementDisplayedXpath = '//div[@class="footer"]'; |
||
14 | public $usernameXpath = '//input[@id="username_or_email"]'; |
||
15 | public $passwordXpath = '//input[@id="password"]'; |
||
16 | public $signInXpath = '//input[@id="allow"]'; |
||
17 | public $rememberXpath = '//input[@id="remember"]'; |
||
18 | |||
19 | public $tweetBoxXpath = '//div[@id="timeline"]/descendant::div[contains(concat(" ",normalize-space(@class)," "), " tweet-content ")]/descendant::div[contains(concat(" ",normalize-space(@class)," "), " RichEditor ")]'; |
||
20 | public $tweetButton = '//button[contains(concat(" ",normalize-space(@class)," "), " js-tweet-btn ") and not(contains(concat(" ",normalize-space(@class)," "), " disabled "))]'; |
||
21 | |||
22 | public $siteUsernameXpath = '//input[@name="session[username_or_email]"]'; |
||
23 | public $sitePasswordXpath = '//input[@name="session[password]"]'; |
||
24 | public $siteSignInXpath = '//input[@type="submit"]'; |
||
25 | |||
26 | public $twitterUrl = 'https://twitter.com/'; |
||
27 | |||
28 | public $loginButtonXpath = '//a[contains(concat(" ",normalize-space(@class)," "), " js-login ")]'; |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getTweetButton() |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getLoginButtonXpath() |
||
45 | |||
46 | |||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getTwitterUrl() |
||
55 | |||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getSiteUsernameXpath() |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getSitePasswordXpath() |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getSiteSignInXpath() |
||
80 | |||
81 | |||
82 | public function getTweetBoxXpath() |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getPasswordXpath() |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getRememberXpath() |
||
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getSignInXpath() |
||
110 | |||
111 | /** |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getUsernameXpath() |
||
118 | |||
119 | public function getHomeXpath() |
||
123 | |||
124 | public function configure(AbstractTestCase $testCase) |
||
128 | |||
129 | public function getGuaranteedPageLoadedElementDisplayedXpath() |
||
133 | |||
134 | public function setGuaranteedPageLoadedElementDisplayedXpath($xpath) |
||
138 | |||
139 | } |