| @@ 24-33 (lines=10) @@ | ||
| 21 | } |
|
| 22 | ||
| 23 | /** {@inheritdoc} */ |
|
| 24 | public function clickLink($link, $element = 'a') |
|
| 25 | { |
|
| 26 | $previousHtml = $this->getCurrentPageSource(); |
|
| 27 | ||
| 28 | $browser = parent::clickLink($link, $element); |
|
| 29 | ||
| 30 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 31 | ||
| 32 | return $browser; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** {@inheritdoc} */ |
|
| 36 | public function value($selector, $value = null) |
|
| @@ 60-69 (lines=10) @@ | ||
| 57 | } |
|
| 58 | ||
| 59 | /** {@inheritdoc} */ |
|
| 60 | public function keys($selector, ...$keys) |
|
| 61 | { |
|
| 62 | $previousHtml = $this->getCurrentPageSource(); |
|
| 63 | ||
| 64 | $browser = parent::keys($selector, $keys); |
|
| 65 | ||
| 66 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 67 | ||
| 68 | return $browser; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** {@inheritdoc} */ |
|
| 72 | public function type($field, $value) |
|
| @@ 72-81 (lines=10) @@ | ||
| 69 | } |
|
| 70 | ||
| 71 | /** {@inheritdoc} */ |
|
| 72 | public function type($field, $value) |
|
| 73 | { |
|
| 74 | $previousHtml = $this->getCurrentPageSource(); |
|
| 75 | ||
| 76 | $browser = parent::type($field, $value); |
|
| 77 | ||
| 78 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 79 | ||
| 80 | return $browser; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** {@inheritdoc} */ |
|
| 84 | public function append($field, $value) |
|
| @@ 84-93 (lines=10) @@ | ||
| 81 | } |
|
| 82 | ||
| 83 | /** {@inheritdoc} */ |
|
| 84 | public function append($field, $value) |
|
| 85 | { |
|
| 86 | $previousHtml = $this->getCurrentPageSource(); |
|
| 87 | ||
| 88 | $browser = parent::append($field, $value); |
|
| 89 | ||
| 90 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 91 | ||
| 92 | return $browser; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** {@inheritdoc} */ |
|
| 96 | public function clear($field) |
|
| @@ 96-105 (lines=10) @@ | ||
| 93 | } |
|
| 94 | ||
| 95 | /** {@inheritdoc} */ |
|
| 96 | public function clear($field) |
|
| 97 | { |
|
| 98 | $previousHtml = $this->getCurrentPageSource(); |
|
| 99 | ||
| 100 | $browser = parent::clear($field); |
|
| 101 | ||
| 102 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 103 | ||
| 104 | return $browser; |
|
| 105 | } |
|
| 106 | ||
| 107 | /** {@inheritdoc} */ |
|
| 108 | public function select($field, $value = null) |
|
| @@ 108-117 (lines=10) @@ | ||
| 105 | } |
|
| 106 | ||
| 107 | /** {@inheritdoc} */ |
|
| 108 | public function select($field, $value = null) |
|
| 109 | { |
|
| 110 | $previousHtml = $this->getCurrentPageSource(); |
|
| 111 | ||
| 112 | $browser = parent::select($field, $value); |
|
| 113 | ||
| 114 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 115 | ||
| 116 | return $browser; |
|
| 117 | } |
|
| 118 | ||
| 119 | /** {@inheritdoc} */ |
|
| 120 | public function radio($field, $value) |
|
| @@ 120-129 (lines=10) @@ | ||
| 117 | } |
|
| 118 | ||
| 119 | /** {@inheritdoc} */ |
|
| 120 | public function radio($field, $value) |
|
| 121 | { |
|
| 122 | $previousHtml = $this->getCurrentPageSource(); |
|
| 123 | ||
| 124 | $browser = parent::radio($field, $value); |
|
| 125 | ||
| 126 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 127 | ||
| 128 | return $browser; |
|
| 129 | } |
|
| 130 | ||
| 131 | /** {@inheritdoc} */ |
|
| 132 | public function check($field, $value = null) |
|
| @@ 132-141 (lines=10) @@ | ||
| 129 | } |
|
| 130 | ||
| 131 | /** {@inheritdoc} */ |
|
| 132 | public function check($field, $value = null) |
|
| 133 | { |
|
| 134 | $previousHtml = $this->getCurrentPageSource(); |
|
| 135 | ||
| 136 | $browser = parent::check($field, $value); |
|
| 137 | ||
| 138 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 139 | ||
| 140 | return $browser; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** {@inheritdoc} */ |
|
| 144 | public function uncheck($field, $value = null) |
|
| @@ 144-153 (lines=10) @@ | ||
| 141 | } |
|
| 142 | ||
| 143 | /** {@inheritdoc} */ |
|
| 144 | public function uncheck($field, $value = null) |
|
| 145 | { |
|
| 146 | $previousHtml = $this->getCurrentPageSource(); |
|
| 147 | ||
| 148 | $browser = parent::uncheck($field, $value); |
|
| 149 | ||
| 150 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 151 | ||
| 152 | return $browser; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** {@inheritdoc} */ |
|
| 156 | public function attach($field, $path) |
|
| @@ 156-165 (lines=10) @@ | ||
| 153 | } |
|
| 154 | ||
| 155 | /** {@inheritdoc} */ |
|
| 156 | public function attach($field, $path) |
|
| 157 | { |
|
| 158 | $previousHtml = $this->getCurrentPageSource(); |
|
| 159 | ||
| 160 | $browser = parent::attach($field, $path); |
|
| 161 | ||
| 162 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 163 | ||
| 164 | return $browser; |
|
| 165 | } |
|
| 166 | ||
| 167 | /** {@inheritdoc} */ |
|
| 168 | public function press($button) |
|
| @@ 168-177 (lines=10) @@ | ||
| 165 | } |
|
| 166 | ||
| 167 | /** {@inheritdoc} */ |
|
| 168 | public function press($button) |
|
| 169 | { |
|
| 170 | $previousHtml = $this->getCurrentPageSource(); |
|
| 171 | ||
| 172 | $browser = parent::press($button); |
|
| 173 | ||
| 174 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 175 | ||
| 176 | return $browser; |
|
| 177 | } |
|
| 178 | ||
| 179 | /** {@inheritdoc} */ |
|
| 180 | public function pressAndWaitFor($button, $seconds = 5) |
|
| @@ 180-189 (lines=10) @@ | ||
| 177 | } |
|
| 178 | ||
| 179 | /** {@inheritdoc} */ |
|
| 180 | public function pressAndWaitFor($button, $seconds = 5) |
|
| 181 | { |
|
| 182 | $previousHtml = $this->getCurrentPageSource(); |
|
| 183 | ||
| 184 | $browser = parent::pressAndWaitFor($button, $seconds); |
|
| 185 | ||
| 186 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 187 | ||
| 188 | return $browser; |
|
| 189 | } |
|
| 190 | ||
| 191 | /** {@inheritdoc} */ |
|
| 192 | public function drag($from, $to) |
|
| @@ 192-201 (lines=10) @@ | ||
| 189 | } |
|
| 190 | ||
| 191 | /** {@inheritdoc} */ |
|
| 192 | public function drag($from, $to) |
|
| 193 | { |
|
| 194 | $previousHtml = $this->getCurrentPageSource(); |
|
| 195 | ||
| 196 | $browser = parent::drag($from, $to); |
|
| 197 | ||
| 198 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 199 | ||
| 200 | return $browser; |
|
| 201 | } |
|
| 202 | ||
| 203 | /** {@inheritdoc} */ |
|
| 204 | public function dragUp($selector, $offset) |
|
| @@ 204-213 (lines=10) @@ | ||
| 201 | } |
|
| 202 | ||
| 203 | /** {@inheritdoc} */ |
|
| 204 | public function dragUp($selector, $offset) |
|
| 205 | { |
|
| 206 | $previousHtml = $this->getCurrentPageSource(); |
|
| 207 | ||
| 208 | $browser = parent::dragUp($selector, $offset); |
|
| 209 | ||
| 210 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 211 | ||
| 212 | return $browser; |
|
| 213 | } |
|
| 214 | ||
| 215 | /** {@inheritdoc} */ |
|
| 216 | public function dragDown($selector, $offset) |
|
| @@ 216-225 (lines=10) @@ | ||
| 213 | } |
|
| 214 | ||
| 215 | /** {@inheritdoc} */ |
|
| 216 | public function dragDown($selector, $offset) |
|
| 217 | { |
|
| 218 | $previousHtml = $this->getCurrentPageSource(); |
|
| 219 | ||
| 220 | $browser = parent::dragDown($selector, $offset); |
|
| 221 | ||
| 222 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 223 | ||
| 224 | return $browser; |
|
| 225 | } |
|
| 226 | ||
| 227 | /** {@inheritdoc} */ |
|
| 228 | public function dragLeft($selector, $offset) |
|
| @@ 228-237 (lines=10) @@ | ||
| 225 | } |
|
| 226 | ||
| 227 | /** {@inheritdoc} */ |
|
| 228 | public function dragLeft($selector, $offset) |
|
| 229 | { |
|
| 230 | $previousHtml = $this->getCurrentPageSource(); |
|
| 231 | ||
| 232 | $browser = parent::dragLeft($selector, $offset); |
|
| 233 | ||
| 234 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 235 | ||
| 236 | return $browser; |
|
| 237 | } |
|
| 238 | ||
| 239 | /** {@inheritdoc} */ |
|
| 240 | public function dragRight($selector, $offset) |
|
| @@ 240-249 (lines=10) @@ | ||
| 237 | } |
|
| 238 | ||
| 239 | /** {@inheritdoc} */ |
|
| 240 | public function dragRight($selector, $offset) |
|
| 241 | { |
|
| 242 | $previousHtml = $this->getCurrentPageSource(); |
|
| 243 | ||
| 244 | $browser = parent::dragRight($selector, $offset); |
|
| 245 | ||
| 246 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 247 | ||
| 248 | return $browser; |
|
| 249 | } |
|
| 250 | ||
| 251 | /** {@inheritdoc} */ |
|
| 252 | public function dragOffset($selector, $x = 0, $y = 0) |
|
| @@ 252-261 (lines=10) @@ | ||
| 249 | } |
|
| 250 | ||
| 251 | /** {@inheritdoc} */ |
|
| 252 | public function dragOffset($selector, $x = 0, $y = 0) |
|
| 253 | { |
|
| 254 | $previousHtml = $this->getCurrentPageSource(); |
|
| 255 | ||
| 256 | $browser = parent::dragOffset($selector, $x, $y); |
|
| 257 | ||
| 258 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 259 | ||
| 260 | return $browser; |
|
| 261 | } |
|
| 262 | ||
| 263 | /** {@inheritdoc} */ |
|
| 264 | public function acceptDialog() |
|
| @@ 8-17 (lines=10) @@ | ||
| 5 | trait InteractsWithMouse |
|
| 6 | { |
|
| 7 | /** {@inheritdoc} */ |
|
| 8 | public function moveMouse($xOffset, $yOffset) |
|
| 9 | { |
|
| 10 | $previousHtml = $this->getCurrentPageSource(); |
|
| 11 | ||
| 12 | $browser = parent::moveMouse($xOffset, $yOffset); |
|
| 13 | ||
| 14 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 15 | ||
| 16 | return $browser; |
|
| 17 | } |
|
| 18 | ||
| 19 | /** {@inheritdoc} */ |
|
| 20 | public function mouseover($selector) |
|
| @@ 20-29 (lines=10) @@ | ||
| 17 | } |
|
| 18 | ||
| 19 | /** {@inheritdoc} */ |
|
| 20 | public function mouseover($selector) |
|
| 21 | { |
|
| 22 | $previousHtml = $this->getCurrentPageSource(); |
|
| 23 | ||
| 24 | $browser = parent::mouseover($selector); |
|
| 25 | ||
| 26 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 27 | ||
| 28 | return $browser; |
|
| 29 | } |
|
| 30 | ||
| 31 | /** {@inheritdoc} */ |
|
| 32 | public function click($selector = null) |
|
| @@ 32-41 (lines=10) @@ | ||
| 29 | } |
|
| 30 | ||
| 31 | /** {@inheritdoc} */ |
|
| 32 | public function click($selector = null) |
|
| 33 | { |
|
| 34 | $previousHtml = $this->getCurrentPageSource(); |
|
| 35 | ||
| 36 | $browser = parent::click($selector); |
|
| 37 | ||
| 38 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 39 | ||
| 40 | return $browser; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** {@inheritdoc} */ |
|
| 44 | public function clickAndHold() |
|
| @@ 44-53 (lines=10) @@ | ||
| 41 | } |
|
| 42 | ||
| 43 | /** {@inheritdoc} */ |
|
| 44 | public function clickAndHold() |
|
| 45 | { |
|
| 46 | $previousHtml = $this->getCurrentPageSource(); |
|
| 47 | ||
| 48 | $browser = parent::clickAndHold(); |
|
| 49 | ||
| 50 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 51 | ||
| 52 | return $browser; |
|
| 53 | } |
|
| 54 | ||
| 55 | public function doubleClick() |
|
| 56 | { |
|
| @@ 55-64 (lines=10) @@ | ||
| 52 | return $browser; |
|
| 53 | } |
|
| 54 | ||
| 55 | public function doubleClick() |
|
| 56 | { |
|
| 57 | $previousHtml = $this->getCurrentPageSource(); |
|
| 58 | ||
| 59 | $browser = parent::doubleClick(); |
|
| 60 | ||
| 61 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 62 | ||
| 63 | return $browser; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** {@inheritdoc} */ |
|
| 67 | public function rightClick($selector = null) |
|
| @@ 67-76 (lines=10) @@ | ||
| 64 | } |
|
| 65 | ||
| 66 | /** {@inheritdoc} */ |
|
| 67 | public function rightClick($selector = null) |
|
| 68 | { |
|
| 69 | $previousHtml = $this->getCurrentPageSource(); |
|
| 70 | ||
| 71 | $browser = parent::rightClick($selector); |
|
| 72 | ||
| 73 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 74 | ||
| 75 | return $browser; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** {@inheritdoc} */ |
|
| 79 | public function releaseMouse() |
|
| @@ 79-88 (lines=10) @@ | ||
| 76 | } |
|
| 77 | ||
| 78 | /** {@inheritdoc} */ |
|
| 79 | public function releaseMouse() |
|
| 80 | { |
|
| 81 | $previousHtml = $this->getCurrentPageSource(); |
|
| 82 | ||
| 83 | $browser = parent::releaseMouse(); |
|
| 84 | ||
| 85 | $this->actionCollector->collect(__FUNCTION__, func_get_args(), $this, $previousHtml); |
|
| 86 | ||
| 87 | return $browser; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||