1 | <?php |
||
34 | class TextEditorPage extends FilesPage { |
||
35 | protected $newTextFileButtonXpath |
||
36 | = './/div[contains(@class, "newFileMenu")]' . |
||
37 | '//a[@data-templatename="New text file.txt"]'; |
||
38 | protected $newTextFileNameInputLabel = 'New text file.txt'; |
||
39 | protected $newTextFileNameInputXpath |
||
40 | = './/div[contains(@class, "newFileMenu")]' . |
||
41 | '//a[@data-templatename="New text file.txt"]//input'; |
||
42 | protected $newTextFileTooltipXpath = ".//*[@class='tooltip-inner']"; |
||
43 | protected $textFileEditXpath = "//textarea[contains(@class,'ace_text-input')]"; |
||
44 | protected $textFileTextLayerXpath = "//div[contains(@class,'ace_text-layer')]"; |
||
45 | protected $textFileLineXpath = ".//div[@class='ace_line']"; |
||
46 | protected $textEditorCloseButtonId = "editor_close"; |
||
47 | |||
48 | /** |
||
49 | * type in the field that matches the given xpath and optionally press enter. |
||
50 | * Note: this depends on methods that might only be in the Selenium |
||
51 | * implementation |
||
52 | * |
||
53 | * @param Session $session |
||
54 | * @param string $xpath |
||
55 | * @param string $text |
||
56 | * @param bool $pressEnter |
||
57 | * |
||
58 | * @throws ElementNotFoundException |
||
59 | * @return void |
||
60 | */ |
||
61 | public function typeInField( |
||
83 | |||
84 | /** |
||
85 | * create a text file with the given name. |
||
86 | * If name is not given the default is used. |
||
87 | * If $useDefaultFileExtension is true, then only the name is entered and the |
||
88 | * file extension is the default given by the application. |
||
89 | * |
||
90 | * @param Session $session |
||
91 | * @param string $name |
||
92 | * @param boolean $useDefaultFileExtension |
||
93 | * |
||
94 | * @return void |
||
95 | */ |
||
96 | public function createTextFile( |
||
158 | |||
159 | /** |
||
160 | * returns the tooltip that is displayed next to the new text file name box |
||
161 | * |
||
162 | * @return string |
||
163 | */ |
||
164 | public function getTooltipOfNewTextFileBox() { |
||
175 | |||
176 | /** |
||
177 | * type text into the text area |
||
178 | * |
||
179 | * @param Session $session |
||
180 | * @param string $text |
||
181 | * |
||
182 | * @return void |
||
183 | */ |
||
184 | public function typeIntoTextFile( |
||
194 | |||
195 | /** |
||
196 | * get the content of the open text file |
||
197 | * |
||
198 | * @return array of lines of text |
||
199 | */ |
||
200 | public function textFileContent() { |
||
217 | |||
218 | /** |
||
219 | * |
||
220 | * @param Session $session |
||
221 | * |
||
222 | * @throws ElementNotFoundException |
||
223 | * @return void |
||
224 | */ |
||
225 | public function closeTheTextEditor(Session $session) { |
||
236 | |||
237 | /** |
||
238 | * @param int $timeout_msec |
||
239 | * |
||
240 | * @return void |
||
241 | */ |
||
242 | public function waitTillEditorIsLoaded( |
||
247 | } |
||
248 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.