You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/extensions.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ extensions:
48
48
49
49
* `delete_successful` (default: true) - delete records for successfully passed tests (log only failed and errored)
50
50
* `module` (default: WebDriver) - which module for screenshots to use. Module should implement `Codeception\Lib\Interfaces\ScreenshotSaver` interaface. Currently only WebDriver or any its children can be used.
51
+
* `animate_slides` (default: true) - set false to disable sliding transition between screenshots
2. Launch the daemon: `java -jar selenium-server-standalone-2.xx.xxx.jar`
21
+
3. Configure this module (in acceptance.suite.yml) by setting url and browser:
19
22
23
+
{% highlight yaml %}
20
24
21
-
### PhantomJS Installation
25
+
modules:
26
+
enabled:
27
+
- WebDriver:
28
+
url: 'http://localhost/'
29
+
browser: firefox
30
+
31
+
{% endhighlight %}
32
+
33
+
#### PhantomJS
22
34
23
35
PhantomJS is a headless alternative to Selenium Server that implements [the WebDriver protocol](https://code.google.com/p/selenium/wiki/JsonWireProtocol).
24
36
It allows you to run Selenium tests on a server without a GUI installed.
SauceLabs can run your WebDriver tests in the cloud, you can also create a tunnel
82
-
enabling you to test locally hosted sites from their servers.
83
-
84
-
1. Create an account at [SauceLabs.com](http://SauceLabs.com) to get your username and access key
85
-
2. In the module configuration use the format `username`:`access_key`@ondemand.saucelabs.com' for `host`
86
-
3. Configure `platform` under `capabilities` to define the [Operating System](https://docs.saucelabs.com/reference/platforms-configurator/#/)
87
-
88
-
[CodeCeption and SauceLabs example](https://github.com/Codeception/Codeception/issues/657#issuecomment-28122164)
132
+
Stability: **stable**
133
+
Based on [facebook php-webdriver](https://github.com/facebook/php-webdriver)
89
134
135
+
### Usage
90
136
91
-
### Locating Elements
137
+
####Locating Elements
92
138
93
139
Most methods in this module that operate on a DOM element (e.g. `click`) accept a locator as the first argument, which can be either a string or an array.
<p> </p><divclass="alert alert-warning">Reference is taken from the source code. <ahref="https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php">Help us to improve documentation. Edit module reference</a></div>
0 commit comments