Completed
Push — master ( 77bcd8...d53364 )
by Dmitry
08:45
created

AcceptanceTesterActions::cantSeeResponseCodeIs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
nc 1
cc 1
eloc 2
nop 1
1
<?php  //[STAMP] b74da70ff5b1db1c49695ce508dd01a8
2
namespace hipanel\tests\_generated;
3
4
// This class was automatically generated by build task
5
// You should not change it manually as it will be overwritten on next build
6
// @codingStandardsIgnoreFile
7
8
trait AcceptanceTesterActions
9
{
10
    /**
11
     * @return \Codeception\Scenario
12
     */
13
    abstract protected function getScenario();
14
15
    
16
    /**
17
     * [!] Method is generated. Documentation taken from corresponding module.
18
     *
19
     * Alias to `haveHttpHeader`
20
     *
21
     * @param $name
22
     * @param $value
23
     * @see \Codeception\Module\PhpBrowser::setHeader()
24
     */
25
    public function setHeader($name, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
        return $this->getScenario()->runStep(new \Codeception\Step\Action('setHeader', func_get_args()));
27
    }
28
29
 
30
    /**
31
     * [!] Method is generated. Documentation taken from corresponding module.
32
     *
33
     * Authenticates user for HTTP_AUTH
34
     *
35
     * @param $username
36
     * @param $password
37
     * @see \Codeception\Module\PhpBrowser::amHttpAuthenticated()
38
     */
39
    public function amHttpAuthenticated($username, $password) {
0 ignored issues
show
Unused Code introduced by
The parameter $username is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $password is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
40
        return $this->getScenario()->runStep(new \Codeception\Step\Condition('amHttpAuthenticated', func_get_args()));
41
    }
42
43
 
44
    /**
45
     * [!] Method is generated. Documentation taken from corresponding module.
46
     *
47
     * Open web page at the given absolute URL and sets its hostname as the base host.
48
     *
49
     * ``` php
50
     * <?php
51
     * $I->amOnUrl('http://codeception.com');
52
     * $I->amOnPage('/quickstart'); // moves to http://codeception.com/quickstart
53
     * ?>
54
     * ```
55
     * @see \Codeception\Module\PhpBrowser::amOnUrl()
56
     */
57
    public function amOnUrl($url) {
0 ignored issues
show
Unused Code introduced by
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
58
        return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnUrl', func_get_args()));
59
    }
60
61
 
62
    /**
63
     * [!] Method is generated. Documentation taken from corresponding module.
64
     *
65
     * Changes the subdomain for the 'url' configuration parameter.
66
     * Does not open a page; use `amOnPage` for that.
67
     *
68
     * ``` php
69
     * <?php
70
     * // If config is: 'http://mysite.com'
71
     * // or config is: 'http://www.mysite.com'
72
     * // or config is: 'http://company.mysite.com'
73
     *
74
     * $I->amOnSubdomain('user');
75
     * $I->amOnPage('/');
76
     * // moves to http://user.mysite.com/
77
     * ?>
78
     * ```
79
     *
80
     * @param $subdomain
81
     *
82
     * @return mixed
83
     * @see \Codeception\Module\PhpBrowser::amOnSubdomain()
84
     */
85
    public function amOnSubdomain($subdomain) {
0 ignored issues
show
Unused Code introduced by
The parameter $subdomain is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
86
        return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnSubdomain', func_get_args()));
87
    }
88
89
 
90
    /**
91
     * [!] Method is generated. Documentation taken from corresponding module.
92
     *
93
     * Low-level API method.
94
     * If Codeception commands are not enough, use [Guzzle HTTP Client](http://guzzlephp.org/) methods directly
95
     *
96
     * Example:
97
     *
98
     * ``` php
99
     * <?php
100
     * $I->executeInGuzzle(function (\GuzzleHttp\Client $client) {
101
     *      $client->get('/get', ['query' => ['foo' => 'bar']]);
102
     * });
103
     * ?>
104
     * ```
105
     *
106
     * It is not recommended to use this command on a regular basis.
107
     * If Codeception lacks important Guzzle Client methods, implement them and submit patches.
108
     *
109
     * @param callable $function
110
     * @see \Codeception\Module\PhpBrowser::executeInGuzzle()
111
     */
112
    public function executeInGuzzle($function) {
0 ignored issues
show
Unused Code introduced by
The parameter $function is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
113
        return $this->getScenario()->runStep(new \Codeception\Step\Action('executeInGuzzle', func_get_args()));
114
    }
115
116
 
117
    /**
118
     * [!] Method is generated. Documentation taken from corresponding module.
119
     *
120
     * Sets the HTTP header to the passed value - which is used on
121
     * subsequent HTTP requests through PhpBrowser.
122
     *
123
     * Example:
124
     * ```php
125
     * <?php
126
     * $I->haveHttpHeader('X-Requested-With', 'Codeception');
127
     * $I->amOnPage('test-headers.php');
128
     * ?>
129
     * ```
130
     *
131
     * To use special chars in Header Key use HTML Character Entities:
132
     * Example:
133
     * Header with underscore - 'Client_Id'
134
     * should be represented as - 'Client&#x0005F;Id' or 'Client&#95;Id'
135
     *
136
     * ```php
137
     * <?php
138
     * $I->haveHttpHeader('Client&#95;Id', 'Codeception');
139
     * ?>
140
     * ```
141
     *
142
     * @param string $name the name of the request header
143
     * @param string $value the value to set it to for subsequent
144
     *        requests
145
     * @see \Codeception\Lib\InnerBrowser::haveHttpHeader()
146
     */
147
    public function haveHttpHeader($name, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
148
        return $this->getScenario()->runStep(new \Codeception\Step\Action('haveHttpHeader', func_get_args()));
149
    }
150
151
 
152
    /**
153
     * [!] Method is generated. Documentation taken from corresponding module.
154
     *
155
     * Deletes the header with the passed name.  Subsequent requests
156
     * will not have the deleted header in its request.
157
     *
158
     * Example:
159
     * ```php
160
     * <?php
161
     * $I->haveHttpHeader('X-Requested-With', 'Codeception');
162
     * $I->amOnPage('test-headers.php');
163
     * // ...
164
     * $I->deleteHeader('X-Requested-With');
165
     * $I->amOnPage('some-other-page.php');
166
     * ?>
167
     * ```
168
     *
169
     * @param string $name the name of the header to delete.
170
     * @see \Codeception\Lib\InnerBrowser::deleteHeader()
171
     */
172
    public function deleteHeader($name) {
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
173
        return $this->getScenario()->runStep(new \Codeception\Step\Action('deleteHeader', func_get_args()));
174
    }
175
176
 
177
    /**
178
     * [!] Method is generated. Documentation taken from corresponding module.
179
     *
180
     * Opens the page for the given relative URI.
181
     *
182
     * ``` php
183
     * <?php
184
     * // opens front page
185
     * $I->amOnPage('/');
186
     * // opens /register page
187
     * $I->amOnPage('/register');
188
     * ```
189
     *
190
     * @param string $page
191
     * @see \Codeception\Lib\InnerBrowser::amOnPage()
192
     */
193
    public function amOnPage($page) {
0 ignored issues
show
Unused Code introduced by
The parameter $page is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
194
        return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args()));
195
    }
196
197
 
198
    /**
199
     * [!] Method is generated. Documentation taken from corresponding module.
200
     *
201
     * Perform a click on a link or a button, given by a locator.
202
     * If a fuzzy locator is given, the page will be searched for a button, link, or image matching the locator string.
203
     * For buttons, the "value" attribute, "name" attribute, and inner text are searched.
204
     * For links, the link text is searched.
205
     * For images, the "alt" attribute and inner text of any parent links are searched.
206
     *
207
     * The second parameter is a context (CSS or XPath locator) to narrow the search.
208
     *
209
     * Note that if the locator matches a button of type `submit`, the form will be submitted.
210
     *
211
     * ``` php
212
     * <?php
213
     * // simple link
214
     * $I->click('Logout');
215
     * // button of form
216
     * $I->click('Submit');
217
     * // CSS button
218
     * $I->click('#form input[type=submit]');
219
     * // XPath
220
     * $I->click('//form/*[@type=submit]');
221
     * // link in context
222
     * $I->click('Logout', '#nav');
223
     * // using strict locator
224
     * $I->click(['link' => 'Login']);
225
     * ?>
226
     * ```
227
     *
228
     * @param $link
229
     * @param $context
230
     * @see \Codeception\Lib\InnerBrowser::click()
231
     */
232
    public function click($link, $context = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $link is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $context is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
233
        return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args()));
234
    }
235
236
 
237
    /**
238
     * [!] Method is generated. Documentation taken from corresponding module.
239
     *
240
     * Checks that the current page contains the given string (case insensitive).
241
     *
242
     * You can specify a specific HTML element (via CSS or XPath) as the second
243
     * parameter to only search within that element.
244
     *
245
     * ``` php
246
     * <?php
247
     * $I->see('Logout');                        // I can suppose user is logged in
248
     * $I->see('Sign Up', 'h1');                 // I can suppose it's a signup page
249
     * $I->see('Sign Up', '//body/h1');          // with XPath
250
     * $I->see('Sign Up', ['css' => 'body h1']); // with strict CSS locator
251
     * ```
252
     *
253
     * Note that the search is done after stripping all HTML tags from the body,
254
     * so `$I->see('strong')` will return true for strings like:
255
     *
256
     *   - `<p>I am Stronger than thou</p>`
257
     *   - `<script>document.createElement('strong');</script>`
258
     *
259
     * But will *not* be true for strings like:
260
     *
261
     *   - `<strong>Home</strong>`
262
     *   - `<div class="strong">Home</strong>`
263
     *   - `<!-- strong -->`
264
     *
265
     * For checking the raw source code, use `seeInSource()`.
266
     *
267
     * @param string $text
268
     * @param string $selector optional
269
     * Conditional Assertion: Test won't be stopped on fail
270
     * @see \Codeception\Lib\InnerBrowser::see()
271
     */
272
    public function canSee($text, $selector = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
273
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('see', func_get_args()));
274
    }
275
    /**
276
     * [!] Method is generated. Documentation taken from corresponding module.
277
     *
278
     * Checks that the current page contains the given string (case insensitive).
279
     *
280
     * You can specify a specific HTML element (via CSS or XPath) as the second
281
     * parameter to only search within that element.
282
     *
283
     * ``` php
284
     * <?php
285
     * $I->see('Logout');                        // I can suppose user is logged in
286
     * $I->see('Sign Up', 'h1');                 // I can suppose it's a signup page
287
     * $I->see('Sign Up', '//body/h1');          // with XPath
288
     * $I->see('Sign Up', ['css' => 'body h1']); // with strict CSS locator
289
     * ```
290
     *
291
     * Note that the search is done after stripping all HTML tags from the body,
292
     * so `$I->see('strong')` will return true for strings like:
293
     *
294
     *   - `<p>I am Stronger than thou</p>`
295
     *   - `<script>document.createElement('strong');</script>`
296
     *
297
     * But will *not* be true for strings like:
298
     *
299
     *   - `<strong>Home</strong>`
300
     *   - `<div class="strong">Home</strong>`
301
     *   - `<!-- strong -->`
302
     *
303
     * For checking the raw source code, use `seeInSource()`.
304
     *
305
     * @param string $text
306
     * @param string $selector optional
307
     * @see \Codeception\Lib\InnerBrowser::see()
308
     */
309
    public function see($text, $selector = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
310
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args()));
311
    }
312
313
 
314
    /**
315
     * [!] Method is generated. Documentation taken from corresponding module.
316
     *
317
     * Checks that the current page doesn't contain the text specified (case insensitive).
318
     * Give a locator as the second parameter to match a specific region.
319
     *
320
     * ```php
321
     * <?php
322
     * $I->dontSee('Login');                         // I can suppose user is already logged in
323
     * $I->dontSee('Sign Up','h1');                  // I can suppose it's not a signup page
324
     * $I->dontSee('Sign Up','//body/h1');           // with XPath
325
     * $I->dontSee('Sign Up', ['css' => 'body h1']); // with strict CSS locator
326
     * ```
327
     *
328
     * Note that the search is done after stripping all HTML tags from the body,
329
     * so `$I->dontSee('strong')` will fail on strings like:
330
     *
331
     *   - `<p>I am Stronger than thou</p>`
332
     *   - `<script>document.createElement('strong');</script>`
333
     *
334
     * But will ignore strings like:
335
     *
336
     *   - `<strong>Home</strong>`
337
     *   - `<div class="strong">Home</strong>`
338
     *   - `<!-- strong -->`
339
     *
340
     * For checking the raw source code, use `seeInSource()`.
341
     *
342
     * @param string $text
343
     * @param string $selector optional
344
     * Conditional Assertion: Test won't be stopped on fail
345
     * @see \Codeception\Lib\InnerBrowser::dontSee()
346
     */
347
    public function cantSee($text, $selector = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
348
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSee', func_get_args()));
349
    }
350
    /**
351
     * [!] Method is generated. Documentation taken from corresponding module.
352
     *
353
     * Checks that the current page doesn't contain the text specified (case insensitive).
354
     * Give a locator as the second parameter to match a specific region.
355
     *
356
     * ```php
357
     * <?php
358
     * $I->dontSee('Login');                         // I can suppose user is already logged in
359
     * $I->dontSee('Sign Up','h1');                  // I can suppose it's not a signup page
360
     * $I->dontSee('Sign Up','//body/h1');           // with XPath
361
     * $I->dontSee('Sign Up', ['css' => 'body h1']); // with strict CSS locator
362
     * ```
363
     *
364
     * Note that the search is done after stripping all HTML tags from the body,
365
     * so `$I->dontSee('strong')` will fail on strings like:
366
     *
367
     *   - `<p>I am Stronger than thou</p>`
368
     *   - `<script>document.createElement('strong');</script>`
369
     *
370
     * But will ignore strings like:
371
     *
372
     *   - `<strong>Home</strong>`
373
     *   - `<div class="strong">Home</strong>`
374
     *   - `<!-- strong -->`
375
     *
376
     * For checking the raw source code, use `seeInSource()`.
377
     *
378
     * @param string $text
379
     * @param string $selector optional
380
     * @see \Codeception\Lib\InnerBrowser::dontSee()
381
     */
382
    public function dontSee($text, $selector = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
383
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSee', func_get_args()));
384
    }
385
386
 
387
    /**
388
     * [!] Method is generated. Documentation taken from corresponding module.
389
     *
390
     * Checks that the current page contains the given string in its
391
     * raw source code.
392
     *
393
     * ``` php
394
     * <?php
395
     * $I->seeInSource('<h1>Green eggs &amp; ham</h1>');
396
     * ```
397
     *
398
     * @param      $raw
399
     * Conditional Assertion: Test won't be stopped on fail
400
     * @see \Codeception\Lib\InnerBrowser::seeInSource()
401
     */
402
    public function canSeeInSource($raw) {
0 ignored issues
show
Unused Code introduced by
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
403
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInSource', func_get_args()));
404
    }
405
    /**
406
     * [!] Method is generated. Documentation taken from corresponding module.
407
     *
408
     * Checks that the current page contains the given string in its
409
     * raw source code.
410
     *
411
     * ``` php
412
     * <?php
413
     * $I->seeInSource('<h1>Green eggs &amp; ham</h1>');
414
     * ```
415
     *
416
     * @param      $raw
417
     * @see \Codeception\Lib\InnerBrowser::seeInSource()
418
     */
419
    public function seeInSource($raw) {
0 ignored issues
show
Unused Code introduced by
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
420
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInSource', func_get_args()));
421
    }
422
423
 
424
    /**
425
     * [!] Method is generated. Documentation taken from corresponding module.
426
     *
427
     * Checks that the current page contains the given string in its
428
     * raw source code.
429
     *
430
     * ```php
431
     * <?php
432
     * $I->dontSeeInSource('<h1>Green eggs &amp; ham</h1>');
433
     * ```
434
     *
435
     * @param      $raw
436
     * Conditional Assertion: Test won't be stopped on fail
437
     * @see \Codeception\Lib\InnerBrowser::dontSeeInSource()
438
     */
439
    public function cantSeeInSource($raw) {
0 ignored issues
show
Unused Code introduced by
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
440
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInSource', func_get_args()));
441
    }
442
    /**
443
     * [!] Method is generated. Documentation taken from corresponding module.
444
     *
445
     * Checks that the current page contains the given string in its
446
     * raw source code.
447
     *
448
     * ```php
449
     * <?php
450
     * $I->dontSeeInSource('<h1>Green eggs &amp; ham</h1>');
451
     * ```
452
     *
453
     * @param      $raw
454
     * @see \Codeception\Lib\InnerBrowser::dontSeeInSource()
455
     */
456
    public function dontSeeInSource($raw) {
0 ignored issues
show
Unused Code introduced by
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
457
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInSource', func_get_args()));
458
    }
459
460
 
461
    /**
462
     * [!] Method is generated. Documentation taken from corresponding module.
463
     *
464
     * Checks that there's a link with the specified text.
465
     * Give a full URL as the second parameter to match links with that exact URL.
466
     *
467
     * ``` php
468
     * <?php
469
     * $I->seeLink('Logout'); // matches <a href="#">Logout</a>
470
     * $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>
471
     * ?>
472
     * ```
473
     *
474
     * @param string $text
475
     * @param string $url optional
476
     * Conditional Assertion: Test won't be stopped on fail
477
     * @see \Codeception\Lib\InnerBrowser::seeLink()
478
     */
479
    public function canSeeLink($text, $url = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
480
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeLink', func_get_args()));
481
    }
482
    /**
483
     * [!] Method is generated. Documentation taken from corresponding module.
484
     *
485
     * Checks that there's a link with the specified text.
486
     * Give a full URL as the second parameter to match links with that exact URL.
487
     *
488
     * ``` php
489
     * <?php
490
     * $I->seeLink('Logout'); // matches <a href="#">Logout</a>
491
     * $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>
492
     * ?>
493
     * ```
494
     *
495
     * @param string $text
496
     * @param string $url optional
497
     * @see \Codeception\Lib\InnerBrowser::seeLink()
498
     */
499
    public function seeLink($text, $url = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
500
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeLink', func_get_args()));
501
    }
502
503
 
504
    /**
505
     * [!] Method is generated. Documentation taken from corresponding module.
506
     *
507
     * Checks that the page doesn't contain a link with the given string.
508
     * If the second parameter is given, only links with a matching "href" attribute will be checked.
509
     *
510
     * ``` php
511
     * <?php
512
     * $I->dontSeeLink('Logout'); // I suppose user is not logged in
513
     * $I->dontSeeLink('Checkout now', '/store/cart.php');
514
     * ?>
515
     * ```
516
     *
517
     * @param string $text
518
     * @param string $url optional
519
     * Conditional Assertion: Test won't be stopped on fail
520
     * @see \Codeception\Lib\InnerBrowser::dontSeeLink()
521
     */
522
    public function cantSeeLink($text, $url = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
523
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeLink', func_get_args()));
524
    }
525
    /**
526
     * [!] Method is generated. Documentation taken from corresponding module.
527
     *
528
     * Checks that the page doesn't contain a link with the given string.
529
     * If the second parameter is given, only links with a matching "href" attribute will be checked.
530
     *
531
     * ``` php
532
     * <?php
533
     * $I->dontSeeLink('Logout'); // I suppose user is not logged in
534
     * $I->dontSeeLink('Checkout now', '/store/cart.php');
535
     * ?>
536
     * ```
537
     *
538
     * @param string $text
539
     * @param string $url optional
540
     * @see \Codeception\Lib\InnerBrowser::dontSeeLink()
541
     */
542
    public function dontSeeLink($text, $url = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
543
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeLink', func_get_args()));
544
    }
545
546
 
547
    /**
548
     * [!] Method is generated. Documentation taken from corresponding module.
549
     *
550
     * Checks that current URI contains the given string.
551
     *
552
     * ``` php
553
     * <?php
554
     * // to match: /home/dashboard
555
     * $I->seeInCurrentUrl('home');
556
     * // to match: /users/1
557
     * $I->seeInCurrentUrl('/users/');
558
     * ?>
559
     * ```
560
     *
561
     * @param string $uri
562
     * Conditional Assertion: Test won't be stopped on fail
563
     * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl()
564
     */
565
    public function canSeeInCurrentUrl($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
566
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInCurrentUrl', func_get_args()));
567
    }
568
    /**
569
     * [!] Method is generated. Documentation taken from corresponding module.
570
     *
571
     * Checks that current URI contains the given string.
572
     *
573
     * ``` php
574
     * <?php
575
     * // to match: /home/dashboard
576
     * $I->seeInCurrentUrl('home');
577
     * // to match: /users/1
578
     * $I->seeInCurrentUrl('/users/');
579
     * ?>
580
     * ```
581
     *
582
     * @param string $uri
583
     * @see \Codeception\Lib\InnerBrowser::seeInCurrentUrl()
584
     */
585
    public function seeInCurrentUrl($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
586
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInCurrentUrl', func_get_args()));
587
    }
588
589
 
590
    /**
591
     * [!] Method is generated. Documentation taken from corresponding module.
592
     *
593
     * Checks that the current URI doesn't contain the given string.
594
     *
595
     * ``` php
596
     * <?php
597
     * $I->dontSeeInCurrentUrl('/users/');
598
     * ?>
599
     * ```
600
     *
601
     * @param string $uri
602
     * Conditional Assertion: Test won't be stopped on fail
603
     * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl()
604
     */
605
    public function cantSeeInCurrentUrl($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
606
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInCurrentUrl', func_get_args()));
607
    }
608
    /**
609
     * [!] Method is generated. Documentation taken from corresponding module.
610
     *
611
     * Checks that the current URI doesn't contain the given string.
612
     *
613
     * ``` php
614
     * <?php
615
     * $I->dontSeeInCurrentUrl('/users/');
616
     * ?>
617
     * ```
618
     *
619
     * @param string $uri
620
     * @see \Codeception\Lib\InnerBrowser::dontSeeInCurrentUrl()
621
     */
622
    public function dontSeeInCurrentUrl($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
623
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInCurrentUrl', func_get_args()));
624
    }
625
626
 
627
    /**
628
     * [!] Method is generated. Documentation taken from corresponding module.
629
     *
630
     * Checks that the current URL is equal to the given string.
631
     * Unlike `seeInCurrentUrl`, this only matches the full URL.
632
     *
633
     * ``` php
634
     * <?php
635
     * // to match root url
636
     * $I->seeCurrentUrlEquals('/');
637
     * ?>
638
     * ```
639
     *
640
     * @param string $uri
641
     * Conditional Assertion: Test won't be stopped on fail
642
     * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals()
643
     */
644
    public function canSeeCurrentUrlEquals($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
645
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlEquals', func_get_args()));
646
    }
647
    /**
648
     * [!] Method is generated. Documentation taken from corresponding module.
649
     *
650
     * Checks that the current URL is equal to the given string.
651
     * Unlike `seeInCurrentUrl`, this only matches the full URL.
652
     *
653
     * ``` php
654
     * <?php
655
     * // to match root url
656
     * $I->seeCurrentUrlEquals('/');
657
     * ?>
658
     * ```
659
     *
660
     * @param string $uri
661
     * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlEquals()
662
     */
663
    public function seeCurrentUrlEquals($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
664
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlEquals', func_get_args()));
665
    }
666
667
 
668
    /**
669
     * [!] Method is generated. Documentation taken from corresponding module.
670
     *
671
     * Checks that the current URL doesn't equal the given string.
672
     * Unlike `dontSeeInCurrentUrl`, this only matches the full URL.
673
     *
674
     * ``` php
675
     * <?php
676
     * // current url is not root
677
     * $I->dontSeeCurrentUrlEquals('/');
678
     * ?>
679
     * ```
680
     *
681
     * @param string $uri
682
     * Conditional Assertion: Test won't be stopped on fail
683
     * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals()
684
     */
685
    public function cantSeeCurrentUrlEquals($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
686
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlEquals', func_get_args()));
687
    }
688
    /**
689
     * [!] Method is generated. Documentation taken from corresponding module.
690
     *
691
     * Checks that the current URL doesn't equal the given string.
692
     * Unlike `dontSeeInCurrentUrl`, this only matches the full URL.
693
     *
694
     * ``` php
695
     * <?php
696
     * // current url is not root
697
     * $I->dontSeeCurrentUrlEquals('/');
698
     * ?>
699
     * ```
700
     *
701
     * @param string $uri
702
     * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlEquals()
703
     */
704
    public function dontSeeCurrentUrlEquals($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
705
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlEquals', func_get_args()));
706
    }
707
708
 
709
    /**
710
     * [!] Method is generated. Documentation taken from corresponding module.
711
     *
712
     * Checks that the current URL matches the given regular expression.
713
     *
714
     * ``` php
715
     * <?php
716
     * // to match root url
717
     * $I->seeCurrentUrlMatches('~$/users/(\d+)~');
718
     * ?>
719
     * ```
720
     *
721
     * @param string $uri
722
     * Conditional Assertion: Test won't be stopped on fail
723
     * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches()
724
     */
725
    public function canSeeCurrentUrlMatches($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
726
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlMatches', func_get_args()));
727
    }
728
    /**
729
     * [!] Method is generated. Documentation taken from corresponding module.
730
     *
731
     * Checks that the current URL matches the given regular expression.
732
     *
733
     * ``` php
734
     * <?php
735
     * // to match root url
736
     * $I->seeCurrentUrlMatches('~$/users/(\d+)~');
737
     * ?>
738
     * ```
739
     *
740
     * @param string $uri
741
     * @see \Codeception\Lib\InnerBrowser::seeCurrentUrlMatches()
742
     */
743
    public function seeCurrentUrlMatches($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
744
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlMatches', func_get_args()));
745
    }
746
747
 
748
    /**
749
     * [!] Method is generated. Documentation taken from corresponding module.
750
     *
751
     * Checks that current url doesn't match the given regular expression.
752
     *
753
     * ``` php
754
     * <?php
755
     * // to match root url
756
     * $I->dontSeeCurrentUrlMatches('~$/users/(\d+)~');
757
     * ?>
758
     * ```
759
     *
760
     * @param string $uri
761
     * Conditional Assertion: Test won't be stopped on fail
762
     * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches()
763
     */
764
    public function cantSeeCurrentUrlMatches($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
765
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCurrentUrlMatches', func_get_args()));
766
    }
767
    /**
768
     * [!] Method is generated. Documentation taken from corresponding module.
769
     *
770
     * Checks that current url doesn't match the given regular expression.
771
     *
772
     * ``` php
773
     * <?php
774
     * // to match root url
775
     * $I->dontSeeCurrentUrlMatches('~$/users/(\d+)~');
776
     * ?>
777
     * ```
778
     *
779
     * @param string $uri
780
     * @see \Codeception\Lib\InnerBrowser::dontSeeCurrentUrlMatches()
781
     */
782
    public function dontSeeCurrentUrlMatches($uri) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
783
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCurrentUrlMatches', func_get_args()));
784
    }
785
786
 
787
    /**
788
     * [!] Method is generated. Documentation taken from corresponding module.
789
     *
790
     * Executes the given regular expression against the current URI and returns the first capturing group.
791
     * If no parameters are provided, the full URI is returned.
792
     *
793
     * ``` php
794
     * <?php
795
     * $user_id = $I->grabFromCurrentUrl('~$/user/(\d+)/~');
796
     * $uri = $I->grabFromCurrentUrl();
797
     * ?>
798
     * ```
799
     *
800
     * @param string $uri optional
801
     *
802
     * @return mixed
803
     * @see \Codeception\Lib\InnerBrowser::grabFromCurrentUrl()
804
     */
805
    public function grabFromCurrentUrl($uri = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
806
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromCurrentUrl', func_get_args()));
807
    }
808
809
 
810
    /**
811
     * [!] Method is generated. Documentation taken from corresponding module.
812
     *
813
     * Checks that the specified checkbox is checked.
814
     *
815
     * ``` php
816
     * <?php
817
     * $I->seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms
818
     * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form.
819
     * $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]');
820
     * ?>
821
     * ```
822
     *
823
     * @param $checkbox
824
     * Conditional Assertion: Test won't be stopped on fail
825
     * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked()
826
     */
827
    public function canSeeCheckboxIsChecked($checkbox) {
0 ignored issues
show
Unused Code introduced by
The parameter $checkbox is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
828
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCheckboxIsChecked', func_get_args()));
829
    }
830
    /**
831
     * [!] Method is generated. Documentation taken from corresponding module.
832
     *
833
     * Checks that the specified checkbox is checked.
834
     *
835
     * ``` php
836
     * <?php
837
     * $I->seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms
838
     * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form.
839
     * $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]');
840
     * ?>
841
     * ```
842
     *
843
     * @param $checkbox
844
     * @see \Codeception\Lib\InnerBrowser::seeCheckboxIsChecked()
845
     */
846
    public function seeCheckboxIsChecked($checkbox) {
0 ignored issues
show
Unused Code introduced by
The parameter $checkbox is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
847
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCheckboxIsChecked', func_get_args()));
848
    }
849
850
 
851
    /**
852
     * [!] Method is generated. Documentation taken from corresponding module.
853
     *
854
     * Check that the specified checkbox is unchecked.
855
     *
856
     * ``` php
857
     * <?php
858
     * $I->dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms
859
     * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form.
860
     * ?>
861
     * ```
862
     *
863
     * @param $checkbox
864
     * Conditional Assertion: Test won't be stopped on fail
865
     * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked()
866
     */
867
    public function cantSeeCheckboxIsChecked($checkbox) {
0 ignored issues
show
Unused Code introduced by
The parameter $checkbox is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
868
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCheckboxIsChecked', func_get_args()));
869
    }
870
    /**
871
     * [!] Method is generated. Documentation taken from corresponding module.
872
     *
873
     * Check that the specified checkbox is unchecked.
874
     *
875
     * ``` php
876
     * <?php
877
     * $I->dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms
878
     * $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form.
879
     * ?>
880
     * ```
881
     *
882
     * @param $checkbox
883
     * @see \Codeception\Lib\InnerBrowser::dontSeeCheckboxIsChecked()
884
     */
885
    public function dontSeeCheckboxIsChecked($checkbox) {
0 ignored issues
show
Unused Code introduced by
The parameter $checkbox is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
886
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCheckboxIsChecked', func_get_args()));
887
    }
888
889
 
890
    /**
891
     * [!] Method is generated. Documentation taken from corresponding module.
892
     *
893
     * Checks that the given input field or textarea *equals* (i.e. not just contains) the given value.
894
     * Fields are matched by label text, the "name" attribute, CSS, or XPath.
895
     *
896
     * ``` php
897
     * <?php
898
     * $I->seeInField('Body','Type your comment here');
899
     * $I->seeInField('form textarea[name=body]','Type your comment here');
900
     * $I->seeInField('form input[type=hidden]','hidden_value');
901
     * $I->seeInField('#searchform input','Search');
902
     * $I->seeInField('//form/*[@name=search]','Search');
903
     * $I->seeInField(['name' => 'search'], 'Search');
904
     * ?>
905
     * ```
906
     *
907
     * @param $field
908
     * @param $value
909
     * Conditional Assertion: Test won't be stopped on fail
910
     * @see \Codeception\Lib\InnerBrowser::seeInField()
911
     */
912
    public function canSeeInField($field, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
913
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInField', func_get_args()));
914
    }
915
    /**
916
     * [!] Method is generated. Documentation taken from corresponding module.
917
     *
918
     * Checks that the given input field or textarea *equals* (i.e. not just contains) the given value.
919
     * Fields are matched by label text, the "name" attribute, CSS, or XPath.
920
     *
921
     * ``` php
922
     * <?php
923
     * $I->seeInField('Body','Type your comment here');
924
     * $I->seeInField('form textarea[name=body]','Type your comment here');
925
     * $I->seeInField('form input[type=hidden]','hidden_value');
926
     * $I->seeInField('#searchform input','Search');
927
     * $I->seeInField('//form/*[@name=search]','Search');
928
     * $I->seeInField(['name' => 'search'], 'Search');
929
     * ?>
930
     * ```
931
     *
932
     * @param $field
933
     * @param $value
934
     * @see \Codeception\Lib\InnerBrowser::seeInField()
935
     */
936
    public function seeInField($field, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
937
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInField', func_get_args()));
938
    }
939
940
 
941
    /**
942
     * [!] Method is generated. Documentation taken from corresponding module.
943
     *
944
     * Checks that an input field or textarea doesn't contain the given value.
945
     * For fuzzy locators, the field is matched by label text, CSS and XPath.
946
     *
947
     * ``` php
948
     * <?php
949
     * $I->dontSeeInField('Body','Type your comment here');
950
     * $I->dontSeeInField('form textarea[name=body]','Type your comment here');
951
     * $I->dontSeeInField('form input[type=hidden]','hidden_value');
952
     * $I->dontSeeInField('#searchform input','Search');
953
     * $I->dontSeeInField('//form/*[@name=search]','Search');
954
     * $I->dontSeeInField(['name' => 'search'], 'Search');
955
     * ?>
956
     * ```
957
     *
958
     * @param $field
959
     * @param $value
960
     * Conditional Assertion: Test won't be stopped on fail
961
     * @see \Codeception\Lib\InnerBrowser::dontSeeInField()
962
     */
963
    public function cantSeeInField($field, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
964
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInField', func_get_args()));
965
    }
966
    /**
967
     * [!] Method is generated. Documentation taken from corresponding module.
968
     *
969
     * Checks that an input field or textarea doesn't contain the given value.
970
     * For fuzzy locators, the field is matched by label text, CSS and XPath.
971
     *
972
     * ``` php
973
     * <?php
974
     * $I->dontSeeInField('Body','Type your comment here');
975
     * $I->dontSeeInField('form textarea[name=body]','Type your comment here');
976
     * $I->dontSeeInField('form input[type=hidden]','hidden_value');
977
     * $I->dontSeeInField('#searchform input','Search');
978
     * $I->dontSeeInField('//form/*[@name=search]','Search');
979
     * $I->dontSeeInField(['name' => 'search'], 'Search');
980
     * ?>
981
     * ```
982
     *
983
     * @param $field
984
     * @param $value
985
     * @see \Codeception\Lib\InnerBrowser::dontSeeInField()
986
     */
987
    public function dontSeeInField($field, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
988
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInField', func_get_args()));
989
    }
990
991
 
992
    /**
993
     * [!] Method is generated. Documentation taken from corresponding module.
994
     *
995
     * Checks if the array of form parameters (name => value) are set on the form matched with the
996
     * passed selector.
997
     *
998
     * ``` php
999
     * <?php
1000
     * $I->seeInFormFields('form[name=myform]', [
1001
     *      'input1' => 'value',
1002
     *      'input2' => 'other value',
1003
     * ]);
1004
     * ?>
1005
     * ```
1006
     *
1007
     * For multi-select elements, or to check values of multiple elements with the same name, an
1008
     * array may be passed:
1009
     *
1010
     * ``` php
1011
     * <?php
1012
     * $I->seeInFormFields('.form-class', [
1013
     *      'multiselect' => [
1014
     *          'value1',
1015
     *          'value2',
1016
     *      ],
1017
     *      'checkbox[]' => [
1018
     *          'a checked value',
1019
     *          'another checked value',
1020
     *      ],
1021
     * ]);
1022
     * ?>
1023
     * ```
1024
     *
1025
     * Additionally, checkbox values can be checked with a boolean.
1026
     *
1027
     * ``` php
1028
     * <?php
1029
     * $I->seeInFormFields('#form-id', [
1030
     *      'checkbox1' => true,        // passes if checked
1031
     *      'checkbox2' => false,       // passes if unchecked
1032
     * ]);
1033
     * ?>
1034
     * ```
1035
     *
1036
     * Pair this with submitForm for quick testing magic.
1037
     *
1038
     * ``` php
1039
     * <?php
1040
     * $form = [
1041
     *      'field1' => 'value',
1042
     *      'field2' => 'another value',
1043
     *      'checkbox1' => true,
1044
     *      // ...
1045
     * ];
1046
     * $I->submitForm('//form[@id=my-form]', $form, 'submitButton');
1047
     * // $I->amOnPage('/path/to/form-page') may be needed
1048
     * $I->seeInFormFields('//form[@id=my-form]', $form);
1049
     * ?>
1050
     * ```
1051
     *
1052
     * @param $formSelector
1053
     * @param $params
1054
     * Conditional Assertion: Test won't be stopped on fail
1055
     * @see \Codeception\Lib\InnerBrowser::seeInFormFields()
1056
     */
1057
    public function canSeeInFormFields($formSelector, $params) {
0 ignored issues
show
Unused Code introduced by
The parameter $formSelector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1058
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInFormFields', func_get_args()));
1059
    }
1060
    /**
1061
     * [!] Method is generated. Documentation taken from corresponding module.
1062
     *
1063
     * Checks if the array of form parameters (name => value) are set on the form matched with the
1064
     * passed selector.
1065
     *
1066
     * ``` php
1067
     * <?php
1068
     * $I->seeInFormFields('form[name=myform]', [
1069
     *      'input1' => 'value',
1070
     *      'input2' => 'other value',
1071
     * ]);
1072
     * ?>
1073
     * ```
1074
     *
1075
     * For multi-select elements, or to check values of multiple elements with the same name, an
1076
     * array may be passed:
1077
     *
1078
     * ``` php
1079
     * <?php
1080
     * $I->seeInFormFields('.form-class', [
1081
     *      'multiselect' => [
1082
     *          'value1',
1083
     *          'value2',
1084
     *      ],
1085
     *      'checkbox[]' => [
1086
     *          'a checked value',
1087
     *          'another checked value',
1088
     *      ],
1089
     * ]);
1090
     * ?>
1091
     * ```
1092
     *
1093
     * Additionally, checkbox values can be checked with a boolean.
1094
     *
1095
     * ``` php
1096
     * <?php
1097
     * $I->seeInFormFields('#form-id', [
1098
     *      'checkbox1' => true,        // passes if checked
1099
     *      'checkbox2' => false,       // passes if unchecked
1100
     * ]);
1101
     * ?>
1102
     * ```
1103
     *
1104
     * Pair this with submitForm for quick testing magic.
1105
     *
1106
     * ``` php
1107
     * <?php
1108
     * $form = [
1109
     *      'field1' => 'value',
1110
     *      'field2' => 'another value',
1111
     *      'checkbox1' => true,
1112
     *      // ...
1113
     * ];
1114
     * $I->submitForm('//form[@id=my-form]', $form, 'submitButton');
1115
     * // $I->amOnPage('/path/to/form-page') may be needed
1116
     * $I->seeInFormFields('//form[@id=my-form]', $form);
1117
     * ?>
1118
     * ```
1119
     *
1120
     * @param $formSelector
1121
     * @param $params
1122
     * @see \Codeception\Lib\InnerBrowser::seeInFormFields()
1123
     */
1124
    public function seeInFormFields($formSelector, $params) {
0 ignored issues
show
Unused Code introduced by
The parameter $formSelector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1125
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInFormFields', func_get_args()));
1126
    }
1127
1128
 
1129
    /**
1130
     * [!] Method is generated. Documentation taken from corresponding module.
1131
     *
1132
     * Checks if the array of form parameters (name => value) are not set on the form matched with
1133
     * the passed selector.
1134
     *
1135
     * ``` php
1136
     * <?php
1137
     * $I->dontSeeInFormFields('form[name=myform]', [
1138
     *      'input1' => 'non-existent value',
1139
     *      'input2' => 'other non-existent value',
1140
     * ]);
1141
     * ?>
1142
     * ```
1143
     *
1144
     * To check that an element hasn't been assigned any one of many values, an array can be passed
1145
     * as the value:
1146
     *
1147
     * ``` php
1148
     * <?php
1149
     * $I->dontSeeInFormFields('.form-class', [
1150
     *      'fieldName' => [
1151
     *          'This value shouldn\'t be set',
1152
     *          'And this value shouldn\'t be set',
1153
     *      ],
1154
     * ]);
1155
     * ?>
1156
     * ```
1157
     *
1158
     * Additionally, checkbox values can be checked with a boolean.
1159
     *
1160
     * ``` php
1161
     * <?php
1162
     * $I->dontSeeInFormFields('#form-id', [
1163
     *      'checkbox1' => true,        // fails if checked
1164
     *      'checkbox2' => false,       // fails if unchecked
1165
     * ]);
1166
     * ?>
1167
     * ```
1168
     *
1169
     * @param $formSelector
1170
     * @param $params
1171
     * Conditional Assertion: Test won't be stopped on fail
1172
     * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields()
1173
     */
1174
    public function cantSeeInFormFields($formSelector, $params) {
0 ignored issues
show
Unused Code introduced by
The parameter $formSelector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1175
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInFormFields', func_get_args()));
1176
    }
1177
    /**
1178
     * [!] Method is generated. Documentation taken from corresponding module.
1179
     *
1180
     * Checks if the array of form parameters (name => value) are not set on the form matched with
1181
     * the passed selector.
1182
     *
1183
     * ``` php
1184
     * <?php
1185
     * $I->dontSeeInFormFields('form[name=myform]', [
1186
     *      'input1' => 'non-existent value',
1187
     *      'input2' => 'other non-existent value',
1188
     * ]);
1189
     * ?>
1190
     * ```
1191
     *
1192
     * To check that an element hasn't been assigned any one of many values, an array can be passed
1193
     * as the value:
1194
     *
1195
     * ``` php
1196
     * <?php
1197
     * $I->dontSeeInFormFields('.form-class', [
1198
     *      'fieldName' => [
1199
     *          'This value shouldn\'t be set',
1200
     *          'And this value shouldn\'t be set',
1201
     *      ],
1202
     * ]);
1203
     * ?>
1204
     * ```
1205
     *
1206
     * Additionally, checkbox values can be checked with a boolean.
1207
     *
1208
     * ``` php
1209
     * <?php
1210
     * $I->dontSeeInFormFields('#form-id', [
1211
     *      'checkbox1' => true,        // fails if checked
1212
     *      'checkbox2' => false,       // fails if unchecked
1213
     * ]);
1214
     * ?>
1215
     * ```
1216
     *
1217
     * @param $formSelector
1218
     * @param $params
1219
     * @see \Codeception\Lib\InnerBrowser::dontSeeInFormFields()
1220
     */
1221
    public function dontSeeInFormFields($formSelector, $params) {
0 ignored issues
show
Unused Code introduced by
The parameter $formSelector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1222
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInFormFields', func_get_args()));
1223
    }
1224
1225
 
1226
    /**
1227
     * [!] Method is generated. Documentation taken from corresponding module.
1228
     *
1229
     * Submits the given form on the page, with the given form
1230
     * values.  Pass the form field's values as an array in the second
1231
     * parameter.
1232
     *
1233
     * Although this function can be used as a short-hand version of
1234
     * `fillField()`, `selectOption()`, `click()` etc. it has some important
1235
     * differences:
1236
     *
1237
     *  * Only field *names* may be used, not CSS/XPath selectors nor field labels
1238
     *  * If a field is sent to this function that does *not* exist on the page,
1239
     *    it will silently be added to the HTTP request.  This is helpful for testing
1240
     *    some types of forms, but be aware that you will *not* get an exception
1241
     *    like you would if you called `fillField()` or `selectOption()` with
1242
     *    a missing field.
1243
     *
1244
     * Fields that are not provided will be filled by their values from the page,
1245
     * or from any previous calls to `fillField()`, `selectOption()` etc.
1246
     * You don't need to click the 'Submit' button afterwards.
1247
     * This command itself triggers the request to form's action.
1248
     *
1249
     * You can optionally specify which button's value to include
1250
     * in the request with the last parameter (as an alternative to
1251
     * explicitly setting its value in the second parameter), as
1252
     * button values are not otherwise included in the request.
1253
     *
1254
     * Examples:
1255
     *
1256
     * ``` php
1257
     * <?php
1258
     * $I->submitForm('#login', [
1259
     *     'login' => 'davert',
1260
     *     'password' => '123456'
1261
     * ]);
1262
     * // or
1263
     * $I->submitForm('#login', [
1264
     *     'login' => 'davert',
1265
     *     'password' => '123456'
1266
     * ], 'submitButtonName');
1267
     *
1268
     * ```
1269
     *
1270
     * For example, given this sample "Sign Up" form:
1271
     *
1272
     * ``` html
1273
     * <form action="/sign_up">
1274
     *     Login:
1275
     *     <input type="text" name="user[login]" /><br/>
1276
     *     Password:
1277
     *     <input type="password" name="user[password]" /><br/>
1278
     *     Do you agree to our terms?
1279
     *     <input type="checkbox" name="user[agree]" /><br/>
1280
     *     Select pricing plan:
1281
     *     <select name="plan">
1282
     *         <option value="1">Free</option>
1283
     *         <option value="2" selected="selected">Paid</option>
1284
     *     </select>
1285
     *     <input type="submit" name="submitButton" value="Submit" />
1286
     * </form>
1287
     * ```
1288
     *
1289
     * You could write the following to submit it:
1290
     *
1291
     * ``` php
1292
     * <?php
1293
     * $I->submitForm(
1294
     *     '#userForm',
1295
     *     [
1296
     *         'user' => [
1297
     *             'login' => 'Davert',
1298
     *             'password' => '123456',
1299
     *             'agree' => true
1300
     *         ]
1301
     *     ],
1302
     *     'submitButton'
1303
     * );
1304
     * ```
1305
     * Note that "2" will be the submitted value for the "plan" field, as it is
1306
     * the selected option.
1307
     *
1308
     * You can also emulate a JavaScript submission by not specifying any
1309
     * buttons in the third parameter to submitForm.
1310
     *
1311
     * ```php
1312
     * <?php
1313
     * $I->submitForm(
1314
     *     '#userForm',
1315
     *     [
1316
     *         'user' => [
1317
     *             'login' => 'Davert',
1318
     *             'password' => '123456',
1319
     *             'agree' => true
1320
     *         ]
1321
     *     ]
1322
     * );
1323
     * ```
1324
     *
1325
     * This function works well when paired with `seeInFormFields()`
1326
     * for quickly testing CRUD interfaces and form validation logic.
1327
     *
1328
     * ``` php
1329
     * <?php
1330
     * $form = [
1331
     *      'field1' => 'value',
1332
     *      'field2' => 'another value',
1333
     *      'checkbox1' => true,
1334
     *      // ...
1335
     * ];
1336
     * $I->submitForm('#my-form', $form, 'submitButton');
1337
     * // $I->amOnPage('/path/to/form-page') may be needed
1338
     * $I->seeInFormFields('#my-form', $form);
1339
     * ```
1340
     *
1341
     * Parameter values can be set to arrays for multiple input fields
1342
     * of the same name, or multi-select combo boxes.  For checkboxes,
1343
     * you can use either the string value or boolean `true`/`false` which will
1344
     * be replaced by the checkbox's value in the DOM.
1345
     *
1346
     * ``` php
1347
     * <?php
1348
     * $I->submitForm('#my-form', [
1349
     *      'field1' => 'value',
1350
     *      'checkbox' => [
1351
     *          'value of first checkbox',
1352
     *          'value of second checkbox',
1353
     *      ],
1354
     *      'otherCheckboxes' => [
1355
     *          true,
1356
     *          false,
1357
     *          false
1358
     *      ],
1359
     *      'multiselect' => [
1360
     *          'first option value',
1361
     *          'second option value'
1362
     *      ]
1363
     * ]);
1364
     * ```
1365
     *
1366
     * Mixing string and boolean values for a checkbox's value is not supported
1367
     * and may produce unexpected results.
1368
     *
1369
     * Field names ending in `[]` must be passed without the trailing square
1370
     * bracket characters, and must contain an array for its value.  This allows
1371
     * submitting multiple values with the same name, consider:
1372
     *
1373
     * ```php
1374
     * <?php
1375
     * // This will NOT work correctly
1376
     * $I->submitForm('#my-form', [
1377
     *     'field[]' => 'value',
1378
     *     'field[]' => 'another value',  // 'field[]' is already a defined key
1379
     * ]);
1380
     * ```
1381
     *
1382
     * The solution is to pass an array value:
1383
     *
1384
     * ```php
1385
     * <?php
1386
     * // This way both values are submitted
1387
     * $I->submitForm('#my-form', [
1388
     *     'field' => [
1389
     *         'value',
1390
     *         'another value',
1391
     *     ]
1392
     * ]);
1393
     * ```
1394
     *
1395
     * @param $selector
1396
     * @param $params
1397
     * @param $button
1398
     * @see \Codeception\Lib\InnerBrowser::submitForm()
1399
     */
1400
    public function submitForm($selector, $params, $button = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $button is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1401
        return $this->getScenario()->runStep(new \Codeception\Step\Action('submitForm', func_get_args()));
1402
    }
1403
1404
 
1405
    /**
1406
     * [!] Method is generated. Documentation taken from corresponding module.
1407
     *
1408
     * Fills a text field or textarea with the given string.
1409
     *
1410
     * ``` php
1411
     * <?php
1412
     * $I->fillField("//input[@type='text']", "Hello World!");
1413
     * $I->fillField(['name' => 'email'], '[email protected]');
1414
     * ?>
1415
     * ```
1416
     *
1417
     * @param $field
1418
     * @param $value
1419
     * @see \Codeception\Lib\InnerBrowser::fillField()
1420
     */
1421
    public function fillField($field, $value) {
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1422
        return $this->getScenario()->runStep(new \Codeception\Step\Action('fillField', func_get_args()));
1423
    }
1424
1425
 
1426
    /**
1427
     * [!] Method is generated. Documentation taken from corresponding module.
1428
     *
1429
     * Selects an option in a select tag or in radio button group.
1430
     *
1431
     * ``` php
1432
     * <?php
1433
     * $I->selectOption('form select[name=account]', 'Premium');
1434
     * $I->selectOption('form input[name=payment]', 'Monthly');
1435
     * $I->selectOption('//form/select[@name=account]', 'Monthly');
1436
     * ?>
1437
     * ```
1438
     *
1439
     * Provide an array for the second argument to select multiple options:
1440
     *
1441
     * ``` php
1442
     * <?php
1443
     * $I->selectOption('Which OS do you use?', array('Windows','Linux'));
1444
     * ?>
1445
     * ```
1446
     *
1447
     * Or provide an associative array for the second argument to specifically define which selection method should be used:
1448
     *
1449
     * ``` php
1450
     * <?php
1451
     * $I->selectOption('Which OS do you use?', array('text' => 'Windows')); // Only search by text 'Windows'
1452
     * $I->selectOption('Which OS do you use?', array('value' => 'windows')); // Only search by value 'windows'
1453
     * ?>
1454
     * ```
1455
     *
1456
     * @param $select
1457
     * @param $option
1458
     * @see \Codeception\Lib\InnerBrowser::selectOption()
1459
     */
1460
    public function selectOption($select, $option) {
0 ignored issues
show
Unused Code introduced by
The parameter $select is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $option is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1461
        return $this->getScenario()->runStep(new \Codeception\Step\Action('selectOption', func_get_args()));
1462
    }
1463
1464
 
1465
    /**
1466
     * [!] Method is generated. Documentation taken from corresponding module.
1467
     *
1468
     * Ticks a checkbox. For radio buttons, use the `selectOption` method instead.
1469
     *
1470
     * ``` php
1471
     * <?php
1472
     * $I->checkOption('#agree');
1473
     * ?>
1474
     * ```
1475
     *
1476
     * @param $option
1477
     * @see \Codeception\Lib\InnerBrowser::checkOption()
1478
     */
1479
    public function checkOption($option) {
0 ignored issues
show
Unused Code introduced by
The parameter $option is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1480
        return $this->getScenario()->runStep(new \Codeception\Step\Action('checkOption', func_get_args()));
1481
    }
1482
1483
 
1484
    /**
1485
     * [!] Method is generated. Documentation taken from corresponding module.
1486
     *
1487
     * Unticks a checkbox.
1488
     *
1489
     * ``` php
1490
     * <?php
1491
     * $I->uncheckOption('#notify');
1492
     * ?>
1493
     * ```
1494
     *
1495
     * @param $option
1496
     * @see \Codeception\Lib\InnerBrowser::uncheckOption()
1497
     */
1498
    public function uncheckOption($option) {
0 ignored issues
show
Unused Code introduced by
The parameter $option is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1499
        return $this->getScenario()->runStep(new \Codeception\Step\Action('uncheckOption', func_get_args()));
1500
    }
1501
1502
 
1503
    /**
1504
     * [!] Method is generated. Documentation taken from corresponding module.
1505
     *
1506
     * Attaches a file relative to the Codeception `_data` directory to the given file upload field.
1507
     *
1508
     * ``` php
1509
     * <?php
1510
     * // file is stored in 'tests/_data/prices.xls'
1511
     * $I->attachFile('input[@type="file"]', 'prices.xls');
1512
     * ?>
1513
     * ```
1514
     *
1515
     * @param $field
1516
     * @param $filename
1517
     * @see \Codeception\Lib\InnerBrowser::attachFile()
1518
     */
1519
    public function attachFile($field, $filename) {
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $filename is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1520
        return $this->getScenario()->runStep(new \Codeception\Step\Action('attachFile', func_get_args()));
1521
    }
1522
1523
 
1524
    /**
1525
     * [!] Method is generated. Documentation taken from corresponding module.
1526
     *
1527
     * If your page triggers an ajax request, you can perform it manually.
1528
     * This action sends a GET ajax request with specified params.
1529
     *
1530
     * See ->sendAjaxPostRequest for examples.
1531
     *
1532
     * @param $uri
1533
     * @param $params
1534
     * @see \Codeception\Lib\InnerBrowser::sendAjaxGetRequest()
1535
     */
1536
    public function sendAjaxGetRequest($uri, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1537
        return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxGetRequest', func_get_args()));
1538
    }
1539
1540
 
1541
    /**
1542
     * [!] Method is generated. Documentation taken from corresponding module.
1543
     *
1544
     * If your page triggers an ajax request, you can perform it manually.
1545
     * This action sends a POST ajax request with specified params.
1546
     * Additional params can be passed as array.
1547
     *
1548
     * Example:
1549
     *
1550
     * Imagine that by clicking checkbox you trigger ajax request which updates user settings.
1551
     * We emulate that click by running this ajax request manually.
1552
     *
1553
     * ``` php
1554
     * <?php
1555
     * $I->sendAjaxPostRequest('/updateSettings', array('notifications' => true)); // POST
1556
     * $I->sendAjaxGetRequest('/updateSettings', array('notifications' => true)); // GET
1557
     *
1558
     * ```
1559
     *
1560
     * @param $uri
1561
     * @param $params
1562
     * @see \Codeception\Lib\InnerBrowser::sendAjaxPostRequest()
1563
     */
1564
    public function sendAjaxPostRequest($uri, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1565
        return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxPostRequest', func_get_args()));
1566
    }
1567
1568
 
1569
    /**
1570
     * [!] Method is generated. Documentation taken from corresponding module.
1571
     *
1572
     * If your page triggers an ajax request, you can perform it manually.
1573
     * This action sends an ajax request with specified method and params.
1574
     *
1575
     * Example:
1576
     *
1577
     * You need to perform an ajax request specifying the HTTP method.
1578
     *
1579
     * ``` php
1580
     * <?php
1581
     * $I->sendAjaxRequest('PUT', '/posts/7', array('title' => 'new title'));
1582
     *
1583
     * ```
1584
     *
1585
     * @param $method
1586
     * @param $uri
1587
     * @param $params
1588
     * @see \Codeception\Lib\InnerBrowser::sendAjaxRequest()
1589
     */
1590
    public function sendAjaxRequest($method, $uri, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $method is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1591
        return $this->getScenario()->runStep(new \Codeception\Step\Action('sendAjaxRequest', func_get_args()));
1592
    }
1593
1594
 
1595
    /**
1596
     * [!] Method is generated. Documentation taken from corresponding module.
1597
     *
1598
     * Finds and returns the text contents of the given element.
1599
     * If a fuzzy locator is used, the element is found using CSS, XPath,
1600
     * and by matching the full page source by regular expression.
1601
     *
1602
     * ``` php
1603
     * <?php
1604
     * $heading = $I->grabTextFrom('h1');
1605
     * $heading = $I->grabTextFrom('descendant-or-self::h1');
1606
     * $value = $I->grabTextFrom('~<input value=(.*?)]~sgi'); // match with a regex
1607
     * ?>
1608
     * ```
1609
     *
1610
     * @param $cssOrXPathOrRegex
1611
     *
1612
     * @return mixed
1613
     * @see \Codeception\Lib\InnerBrowser::grabTextFrom()
1614
     */
1615
    public function grabTextFrom($cssOrXPathOrRegex) {
0 ignored issues
show
Unused Code introduced by
The parameter $cssOrXPathOrRegex is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1616
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabTextFrom', func_get_args()));
1617
    }
1618
1619
 
1620
    /**
1621
     * [!] Method is generated. Documentation taken from corresponding module.
1622
     *
1623
     * Grabs the value of the given attribute value from the given element.
1624
     * Fails if element is not found.
1625
     *
1626
     * ``` php
1627
     * <?php
1628
     * $I->grabAttributeFrom('#tooltip', 'title');
1629
     * ?>
1630
     * ```
1631
     *
1632
     *
1633
     * @param $cssOrXpath
1634
     * @param $attribute
1635
     *
1636
     * @return mixed
1637
     * @see \Codeception\Lib\InnerBrowser::grabAttributeFrom()
1638
     */
1639
    public function grabAttributeFrom($cssOrXpath, $attribute) {
0 ignored issues
show
Unused Code introduced by
The parameter $cssOrXpath is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $attribute is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1640
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabAttributeFrom', func_get_args()));
1641
    }
1642
1643
 
1644
    /**
1645
     * [!] Method is generated. Documentation taken from corresponding module.
1646
     *
1647
     * Grabs either the text content, or attribute values, of nodes
1648
     * matched by $cssOrXpath and returns them as an array.
1649
     *
1650
     * ```html
1651
     * <a href="#first">First</a>
1652
     * <a href="#second">Second</a>
1653
     * <a href="#third">Third</a>
1654
     * ```
1655
     *
1656
     * ```php
1657
     * <?php
1658
     * // would return ['First', 'Second', 'Third']
1659
     * $aLinkText = $I->grabMultiple('a');
1660
     *
1661
     * // would return ['#first', '#second', '#third']
1662
     * $aLinks = $I->grabMultiple('a', 'href');
1663
     * ?>
1664
     * ```
1665
     *
1666
     * @param $cssOrXpath
1667
     * @param $attribute
1668
     * @return string[]
1669
     * @see \Codeception\Lib\InnerBrowser::grabMultiple()
1670
     */
1671
    public function grabMultiple($cssOrXpath, $attribute = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $cssOrXpath is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $attribute is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1672
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabMultiple', func_get_args()));
1673
    }
1674
1675
 
1676
    /**
1677
     * [!] Method is generated. Documentation taken from corresponding module.
1678
     *
1679
     * @param $field
1680
     *
1681
     * @return array|mixed|null|string
1682
     * @see \Codeception\Lib\InnerBrowser::grabValueFrom()
1683
     */
1684
    public function grabValueFrom($field) {
0 ignored issues
show
Unused Code introduced by
The parameter $field is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1685
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabValueFrom', func_get_args()));
1686
    }
1687
1688
 
1689
    /**
1690
     * [!] Method is generated. Documentation taken from corresponding module.
1691
     *
1692
     * Sets a cookie with the given name and value.
1693
     * You can set additional cookie params like `domain`, `path`, `expires`, `secure` in array passed as last argument.
1694
     *
1695
     * ``` php
1696
     * <?php
1697
     * $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
1698
     * ?>
1699
     * ```
1700
     *
1701
     * @param $name
1702
     * @param $val
1703
     * @param array $params
1704
     *
1705
     * @return mixed
1706
     * @see \Codeception\Lib\InnerBrowser::setCookie()
1707
     */
1708
    public function setCookie($name, $val, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $val is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1709
        return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args()));
1710
    }
1711
1712
 
1713
    /**
1714
     * [!] Method is generated. Documentation taken from corresponding module.
1715
     *
1716
     * Grabs a cookie value.
1717
     * You can set additional cookie params like `domain`, `path` in array passed as last argument.
1718
     *
1719
     * @param $cookie
1720
     *
1721
     * @param array $params
1722
     * @return mixed
1723
     * @see \Codeception\Lib\InnerBrowser::grabCookie()
1724
     */
1725
    public function grabCookie($cookie, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1726
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabCookie', func_get_args()));
1727
    }
1728
1729
 
1730
    /**
1731
     * [!] Method is generated. Documentation taken from corresponding module.
1732
     *
1733
     * Grabs current page source code.
1734
     *
1735
     * @throws ModuleException if no page was opened.
1736
     *
1737
     * @return string Current page source code.
1738
     * @see \Codeception\Lib\InnerBrowser::grabPageSource()
1739
     */
1740
    public function grabPageSource() {
1741
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabPageSource', func_get_args()));
1742
    }
1743
1744
 
1745
    /**
1746
     * [!] Method is generated. Documentation taken from corresponding module.
1747
     *
1748
     * Checks that a cookie with the given name is set.
1749
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
1750
     *
1751
     * ``` php
1752
     * <?php
1753
     * $I->seeCookie('PHPSESSID');
1754
     * ?>
1755
     * ```
1756
     *
1757
     * @param $cookie
1758
     * @param array $params
1759
     * @return mixed
1760
     * Conditional Assertion: Test won't be stopped on fail
1761
     * @see \Codeception\Lib\InnerBrowser::seeCookie()
1762
     */
1763
    public function canSeeCookie($cookie, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1764
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCookie', func_get_args()));
1765
    }
1766
    /**
1767
     * [!] Method is generated. Documentation taken from corresponding module.
1768
     *
1769
     * Checks that a cookie with the given name is set.
1770
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
1771
     *
1772
     * ``` php
1773
     * <?php
1774
     * $I->seeCookie('PHPSESSID');
1775
     * ?>
1776
     * ```
1777
     *
1778
     * @param $cookie
1779
     * @param array $params
1780
     * @return mixed
1781
     * @see \Codeception\Lib\InnerBrowser::seeCookie()
1782
     */
1783
    public function seeCookie($cookie, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1784
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args()));
1785
    }
1786
1787
 
1788
    /**
1789
     * [!] Method is generated. Documentation taken from corresponding module.
1790
     *
1791
     * Checks that there isn't a cookie with the given name.
1792
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
1793
     *
1794
     * @param $cookie
1795
     *
1796
     * @param array $params
1797
     * @return mixed
1798
     * Conditional Assertion: Test won't be stopped on fail
1799
     * @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
1800
     */
1801
    public function cantSeeCookie($cookie, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1802
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCookie', func_get_args()));
1803
    }
1804
    /**
1805
     * [!] Method is generated. Documentation taken from corresponding module.
1806
     *
1807
     * Checks that there isn't a cookie with the given name.
1808
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
1809
     *
1810
     * @param $cookie
1811
     *
1812
     * @param array $params
1813
     * @return mixed
1814
     * @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
1815
     */
1816
    public function dontSeeCookie($cookie, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1817
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args()));
1818
    }
1819
1820
 
1821
    /**
1822
     * [!] Method is generated. Documentation taken from corresponding module.
1823
     *
1824
     * Unsets cookie with the given name.
1825
     * You can set additional cookie params like `domain`, `path` in array passed as last argument.
1826
     *
1827
     * @param $cookie
1828
     *
1829
     * @param array $params
1830
     * @return mixed
1831
     * @see \Codeception\Lib\InnerBrowser::resetCookie()
1832
     */
1833
    public function resetCookie($name, $params = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1834
        return $this->getScenario()->runStep(new \Codeception\Step\Action('resetCookie', func_get_args()));
1835
    }
1836
1837
 
1838
    /**
1839
     * [!] Method is generated. Documentation taken from corresponding module.
1840
     *
1841
     * Checks that the given element exists on the page and is visible.
1842
     * You can also specify expected attributes of this element.
1843
     *
1844
     * ``` php
1845
     * <?php
1846
     * $I->seeElement('.error');
1847
     * $I->seeElement('//form/input[1]');
1848
     * $I->seeElement('input', ['name' => 'login']);
1849
     * $I->seeElement('input', ['value' => '123456']);
1850
     *
1851
     * // strict locator in first arg, attributes in second
1852
     * $I->seeElement(['css' => 'form input'], ['name' => 'login']);
1853
     * ?>
1854
     * ```
1855
     *
1856
     * @param $selector
1857
     * @param array $attributes
1858
     * @return
1859
     * Conditional Assertion: Test won't be stopped on fail
1860
     * @see \Codeception\Lib\InnerBrowser::seeElement()
1861
     */
1862
    public function canSeeElement($selector, $attributes = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $attributes is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1863
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeElement', func_get_args()));
1864
    }
1865
    /**
1866
     * [!] Method is generated. Documentation taken from corresponding module.
1867
     *
1868
     * Checks that the given element exists on the page and is visible.
1869
     * You can also specify expected attributes of this element.
1870
     *
1871
     * ``` php
1872
     * <?php
1873
     * $I->seeElement('.error');
1874
     * $I->seeElement('//form/input[1]');
1875
     * $I->seeElement('input', ['name' => 'login']);
1876
     * $I->seeElement('input', ['value' => '123456']);
1877
     *
1878
     * // strict locator in first arg, attributes in second
1879
     * $I->seeElement(['css' => 'form input'], ['name' => 'login']);
1880
     * ?>
1881
     * ```
1882
     *
1883
     * @param $selector
1884
     * @param array $attributes
1885
     * @return
1886
     * @see \Codeception\Lib\InnerBrowser::seeElement()
1887
     */
1888
    public function seeElement($selector, $attributes = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $attributes is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1889
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeElement', func_get_args()));
1890
    }
1891
1892
 
1893
    /**
1894
     * [!] Method is generated. Documentation taken from corresponding module.
1895
     *
1896
     * Checks that the given element is invisible or not present on the page.
1897
     * You can also specify expected attributes of this element.
1898
     *
1899
     * ``` php
1900
     * <?php
1901
     * $I->dontSeeElement('.error');
1902
     * $I->dontSeeElement('//form/input[1]');
1903
     * $I->dontSeeElement('input', ['name' => 'login']);
1904
     * $I->dontSeeElement('input', ['value' => '123456']);
1905
     * ?>
1906
     * ```
1907
     *
1908
     * @param $selector
1909
     * @param array $attributes
1910
     * Conditional Assertion: Test won't be stopped on fail
1911
     * @see \Codeception\Lib\InnerBrowser::dontSeeElement()
1912
     */
1913
    public function cantSeeElement($selector, $attributes = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $attributes is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1914
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeElement', func_get_args()));
1915
    }
1916
    /**
1917
     * [!] Method is generated. Documentation taken from corresponding module.
1918
     *
1919
     * Checks that the given element is invisible or not present on the page.
1920
     * You can also specify expected attributes of this element.
1921
     *
1922
     * ``` php
1923
     * <?php
1924
     * $I->dontSeeElement('.error');
1925
     * $I->dontSeeElement('//form/input[1]');
1926
     * $I->dontSeeElement('input', ['name' => 'login']);
1927
     * $I->dontSeeElement('input', ['value' => '123456']);
1928
     * ?>
1929
     * ```
1930
     *
1931
     * @param $selector
1932
     * @param array $attributes
1933
     * @see \Codeception\Lib\InnerBrowser::dontSeeElement()
1934
     */
1935
    public function dontSeeElement($selector, $attributes = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $attributes is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1936
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeElement', func_get_args()));
1937
    }
1938
1939
 
1940
    /**
1941
     * [!] Method is generated. Documentation taken from corresponding module.
1942
     *
1943
     * Checks that there are a certain number of elements matched by the given locator on the page.
1944
     *
1945
     * ``` php
1946
     * <?php
1947
     * $I->seeNumberOfElements('tr', 10);
1948
     * $I->seeNumberOfElements('tr', [0,10]); // between 0 and 10 elements
1949
     * ?>
1950
     * ```
1951
     * @param $selector
1952
     * @param mixed $expected int or int[]
1953
     * Conditional Assertion: Test won't be stopped on fail
1954
     * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements()
1955
     */
1956
    public function canSeeNumberOfElements($selector, $expected) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1957
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumberOfElements', func_get_args()));
1958
    }
1959
    /**
1960
     * [!] Method is generated. Documentation taken from corresponding module.
1961
     *
1962
     * Checks that there are a certain number of elements matched by the given locator on the page.
1963
     *
1964
     * ``` php
1965
     * <?php
1966
     * $I->seeNumberOfElements('tr', 10);
1967
     * $I->seeNumberOfElements('tr', [0,10]); // between 0 and 10 elements
1968
     * ?>
1969
     * ```
1970
     * @param $selector
1971
     * @param mixed $expected int or int[]
1972
     * @see \Codeception\Lib\InnerBrowser::seeNumberOfElements()
1973
     */
1974
    public function seeNumberOfElements($selector, $expected) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1975
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeNumberOfElements', func_get_args()));
1976
    }
1977
1978
 
1979
    /**
1980
     * [!] Method is generated. Documentation taken from corresponding module.
1981
     *
1982
     * Checks that the given option is selected.
1983
     *
1984
     * ``` php
1985
     * <?php
1986
     * $I->seeOptionIsSelected('#form input[name=payment]', 'Visa');
1987
     * ?>
1988
     * ```
1989
     *
1990
     * @param $selector
1991
     * @param $optionText
1992
     *
1993
     * @return mixed
1994
     * Conditional Assertion: Test won't be stopped on fail
1995
     * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected()
1996
     */
1997
    public function canSeeOptionIsSelected($selector, $optionText) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $optionText is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1998
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeOptionIsSelected', func_get_args()));
1999
    }
2000
    /**
2001
     * [!] Method is generated. Documentation taken from corresponding module.
2002
     *
2003
     * Checks that the given option is selected.
2004
     *
2005
     * ``` php
2006
     * <?php
2007
     * $I->seeOptionIsSelected('#form input[name=payment]', 'Visa');
2008
     * ?>
2009
     * ```
2010
     *
2011
     * @param $selector
2012
     * @param $optionText
2013
     *
2014
     * @return mixed
2015
     * @see \Codeception\Lib\InnerBrowser::seeOptionIsSelected()
2016
     */
2017
    public function seeOptionIsSelected($selector, $optionText) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $optionText is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2018
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeOptionIsSelected', func_get_args()));
2019
    }
2020
2021
 
2022
    /**
2023
     * [!] Method is generated. Documentation taken from corresponding module.
2024
     *
2025
     * Checks that the given option is not selected.
2026
     *
2027
     * ``` php
2028
     * <?php
2029
     * $I->dontSeeOptionIsSelected('#form input[name=payment]', 'Visa');
2030
     * ?>
2031
     * ```
2032
     *
2033
     * @param $selector
2034
     * @param $optionText
2035
     *
2036
     * @return mixed
2037
     * Conditional Assertion: Test won't be stopped on fail
2038
     * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected()
2039
     */
2040
    public function cantSeeOptionIsSelected($selector, $optionText) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $optionText is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2041
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeOptionIsSelected', func_get_args()));
2042
    }
2043
    /**
2044
     * [!] Method is generated. Documentation taken from corresponding module.
2045
     *
2046
     * Checks that the given option is not selected.
2047
     *
2048
     * ``` php
2049
     * <?php
2050
     * $I->dontSeeOptionIsSelected('#form input[name=payment]', 'Visa');
2051
     * ?>
2052
     * ```
2053
     *
2054
     * @param $selector
2055
     * @param $optionText
2056
     *
2057
     * @return mixed
2058
     * @see \Codeception\Lib\InnerBrowser::dontSeeOptionIsSelected()
2059
     */
2060
    public function dontSeeOptionIsSelected($selector, $optionText) {
0 ignored issues
show
Unused Code introduced by
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $optionText is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2061
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeOptionIsSelected', func_get_args()));
2062
    }
2063
2064
 
2065
    /**
2066
     * [!] Method is generated. Documentation taken from corresponding module.
2067
     *
2068
     * Asserts that current page has 404 response status code.
2069
     * Conditional Assertion: Test won't be stopped on fail
2070
     * @see \Codeception\Lib\InnerBrowser::seePageNotFound()
2071
     */
2072
    public function canSeePageNotFound() {
2073
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seePageNotFound', func_get_args()));
2074
    }
2075
    /**
2076
     * [!] Method is generated. Documentation taken from corresponding module.
2077
     *
2078
     * Asserts that current page has 404 response status code.
2079
     * @see \Codeception\Lib\InnerBrowser::seePageNotFound()
2080
     */
2081
    public function seePageNotFound() {
2082
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seePageNotFound', func_get_args()));
2083
    }
2084
2085
 
2086
    /**
2087
     * [!] Method is generated. Documentation taken from corresponding module.
2088
     *
2089
     * Checks that response code is equal to value provided.
2090
     *
2091
     * ```php
2092
     * <?php
2093
     * $I->seeResponseCodeIs(200);
2094
     *
2095
     * // recommended \Codeception\Util\HttpCode
2096
     * $I->seeResponseCodeIs(\Codeception\Util\HttpCode::OK);
2097
     * ```
2098
     *
2099
     * @param $code
2100
     * Conditional Assertion: Test won't be stopped on fail
2101
     * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs()
2102
     */
2103
    public function canSeeResponseCodeIs($code) {
0 ignored issues
show
Unused Code introduced by
The parameter $code is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2104
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeResponseCodeIs', func_get_args()));
2105
    }
2106
    /**
2107
     * [!] Method is generated. Documentation taken from corresponding module.
2108
     *
2109
     * Checks that response code is equal to value provided.
2110
     *
2111
     * ```php
2112
     * <?php
2113
     * $I->seeResponseCodeIs(200);
2114
     *
2115
     * // recommended \Codeception\Util\HttpCode
2116
     * $I->seeResponseCodeIs(\Codeception\Util\HttpCode::OK);
2117
     * ```
2118
     *
2119
     * @param $code
2120
     * @see \Codeception\Lib\InnerBrowser::seeResponseCodeIs()
2121
     */
2122
    public function seeResponseCodeIs($code) {
0 ignored issues
show
Unused Code introduced by
The parameter $code is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2123
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeResponseCodeIs', func_get_args()));
2124
    }
2125
2126
 
2127
    /**
2128
     * [!] Method is generated. Documentation taken from corresponding module.
2129
     *
2130
     * Checks that response code is equal to value provided.
2131
     *
2132
     * ```php
2133
     * <?php
2134
     * $I->dontSeeResponseCodeIs(200);
2135
     *
2136
     * // recommended \Codeception\Util\HttpCode
2137
     * $I->dontSeeResponseCodeIs(\Codeception\Util\HttpCode::OK);
2138
     * ```
2139
     * @param $code
2140
     * Conditional Assertion: Test won't be stopped on fail
2141
     * @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs()
2142
     */
2143
    public function cantSeeResponseCodeIs($code) {
0 ignored issues
show
Unused Code introduced by
The parameter $code is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2144
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeResponseCodeIs', func_get_args()));
2145
    }
2146
    /**
2147
     * [!] Method is generated. Documentation taken from corresponding module.
2148
     *
2149
     * Checks that response code is equal to value provided.
2150
     *
2151
     * ```php
2152
     * <?php
2153
     * $I->dontSeeResponseCodeIs(200);
2154
     *
2155
     * // recommended \Codeception\Util\HttpCode
2156
     * $I->dontSeeResponseCodeIs(\Codeception\Util\HttpCode::OK);
2157
     * ```
2158
     * @param $code
2159
     * @see \Codeception\Lib\InnerBrowser::dontSeeResponseCodeIs()
2160
     */
2161
    public function dontSeeResponseCodeIs($code) {
0 ignored issues
show
Unused Code introduced by
The parameter $code is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2162
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeResponseCodeIs', func_get_args()));
2163
    }
2164
2165
 
2166
    /**
2167
     * [!] Method is generated. Documentation taken from corresponding module.
2168
     *
2169
     * Checks that the page title contains the given string.
2170
     *
2171
     * ``` php
2172
     * <?php
2173
     * $I->seeInTitle('Blog - Post #1');
2174
     * ?>
2175
     * ```
2176
     *
2177
     * @param $title
2178
     *
2179
     * @return mixed
2180
     * Conditional Assertion: Test won't be stopped on fail
2181
     * @see \Codeception\Lib\InnerBrowser::seeInTitle()
2182
     */
2183
    public function canSeeInTitle($title) {
0 ignored issues
show
Unused Code introduced by
The parameter $title is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2184
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInTitle', func_get_args()));
2185
    }
2186
    /**
2187
     * [!] Method is generated. Documentation taken from corresponding module.
2188
     *
2189
     * Checks that the page title contains the given string.
2190
     *
2191
     * ``` php
2192
     * <?php
2193
     * $I->seeInTitle('Blog - Post #1');
2194
     * ?>
2195
     * ```
2196
     *
2197
     * @param $title
2198
     *
2199
     * @return mixed
2200
     * @see \Codeception\Lib\InnerBrowser::seeInTitle()
2201
     */
2202
    public function seeInTitle($title) {
0 ignored issues
show
Unused Code introduced by
The parameter $title is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2203
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInTitle', func_get_args()));
2204
    }
2205
2206
 
2207
    /**
2208
     * [!] Method is generated. Documentation taken from corresponding module.
2209
     *
2210
     * Checks that the page title does not contain the given string.
2211
     *
2212
     * @param $title
2213
     *
2214
     * @return mixed
2215
     * Conditional Assertion: Test won't be stopped on fail
2216
     * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle()
2217
     */
2218
    public function cantSeeInTitle($title) {
0 ignored issues
show
Unused Code introduced by
The parameter $title is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2219
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInTitle', func_get_args()));
2220
    }
2221
    /**
2222
     * [!] Method is generated. Documentation taken from corresponding module.
2223
     *
2224
     * Checks that the page title does not contain the given string.
2225
     *
2226
     * @param $title
2227
     *
2228
     * @return mixed
2229
     * @see \Codeception\Lib\InnerBrowser::dontSeeInTitle()
2230
     */
2231
    public function dontSeeInTitle($title) {
0 ignored issues
show
Unused Code introduced by
The parameter $title is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2232
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInTitle', func_get_args()));
2233
    }
2234
2235
 
2236
    /**
2237
     * [!] Method is generated. Documentation taken from corresponding module.
2238
     *
2239
     * Switch to iframe or frame on the page.
2240
     *
2241
     * Example:
2242
     * ``` html
2243
     * <iframe name="another_frame" src="http://example.com">
2244
     * ```
2245
     *
2246
     * ``` php
2247
     * <?php
2248
     * # switch to iframe
2249
     * $I->switchToIframe("another_frame");
2250
     * ```
2251
     *
2252
     * @param string $name
2253
     * @see \Codeception\Lib\InnerBrowser::switchToIframe()
2254
     */
2255
    public function switchToIframe($name) {
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2256
        return $this->getScenario()->runStep(new \Codeception\Step\Action('switchToIframe', func_get_args()));
2257
    }
2258
2259
 
2260
    /**
2261
     * [!] Method is generated. Documentation taken from corresponding module.
2262
     *
2263
     * Moves back in history.
2264
     *
2265
     * @param int $numberOfSteps (default value 1)
2266
     * @see \Codeception\Lib\InnerBrowser::moveBack()
2267
     */
2268
    public function moveBack($numberOfSteps = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $numberOfSteps is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2269
        return $this->getScenario()->runStep(new \Codeception\Step\Action('moveBack', func_get_args()));
2270
    }
2271
}
2272