1 | <?php |
||
28 | class TextEditorPage extends FilesPage |
||
29 | { |
||
30 | protected $newTextFileButtonXpath = './/div[contains(@class, "newFileMenu")]//a[@data-templatename="New text file.txt"]'; |
||
31 | protected $newTextFileNameInputLabel = 'New text file.txt'; |
||
32 | protected $newTextFileNameInputXpath = ".//div[contains(@class, \"newFileMenu\")]//a[@data-templatename=\"New text file.txt\"]//input"; |
||
33 | protected $textFileEditXpath = "//textarea[contains(@class,'ace_text-input')]"; |
||
34 | protected $textEditorCloseButtonId = "editor_close"; |
||
35 | |||
36 | /** |
||
37 | * type in the field that matches the given xpath and press enter. |
||
38 | * Note: this depends on methods that might only be in the Selenium implementation |
||
39 | * |
||
40 | * @param string $xpath |
||
41 | * @param string $text |
||
42 | * @throws \SensioLabs\Behat\PageObjectExtension\PageObject\Exception\ElementNotFoundException |
||
43 | */ |
||
44 | public function typeInFieldAndPressEnter($xpath, $text) |
||
57 | |||
58 | /** |
||
59 | * create a text file with the given name. |
||
60 | * If name is not given the default is used. |
||
61 | * If $useDefaultFileType is true, then only the name is entered and the |
||
62 | * file type is the default given by the application. |
||
63 | * |
||
64 | * @param string $name |
||
65 | * @param boolean $useDefaultFileType |
||
66 | */ |
||
67 | public function createTextFile($name = null, $useDefaultFileType = false) |
||
90 | |||
91 | /** |
||
92 | * finds the textarea field to use for editing a text file |
||
93 | * |
||
94 | * @throws ElementNotFoundException |
||
95 | * @return \Behat\Mink\Element\NodeElement |
||
96 | */ |
||
97 | public function findTextFileEditField() { |
||
106 | |||
107 | /** |
||
108 | * type text into the text area |
||
109 | * |
||
110 | * @param string $text |
||
111 | * @return void |
||
112 | */ |
||
113 | public function typeIntoTextFile($text) { |
||
117 | |||
118 | /** |
||
119 | * |
||
120 | * @throws ElementNotFoundException |
||
121 | * @return void |
||
122 | */ |
||
123 | public function closeTheTextEditor() { |
||
132 | |||
133 | public function waitTillEditorIsLoaded($timeout_msec = STANDARDUIWAITTIMEOUTMILLISEC) |
||
137 | |||
138 | } |
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.