File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 299299 * until it finally tries to find the form by XPath).
300300 * If speed is a concern, it's recommended you stick with explicitly specifying the locator type via the array syntax.
301301 *
302+ * ### Get Scenario Metadata
303+ *
304+ * You can inject `\Codeception\Scenario` into your test to get information about the current configuration:
305+ * ```php
306+ * use Codeception\Scenario
307+ * public function myTest(AcceptanceTester $I, Scenario $scenario)
308+ * {
309+ * if ('firefox' === $scenario->current('browser')) {
310+ * // ...
311+ * }
312+ * }
313+ * ```
314+ * See [Get Scenario Metadata](https://codeception.com/docs/07-AdvancedUsage#Get-Scenario-Metadata) for more information on `$scenario`.
315+ *
302316 * ## Public Properties
303317 *
304318 * * `webDriver` - instance of `\Facebook\WebDriver\Remote\RemoteWebDriver`. Can be accessed from Helper classes for complex WebDriver interactions.
You can’t perform that action at this time.
0 commit comments