Skip to content

Commit 88fd37e

Browse files
Update WebDriver.php
Removing PhantomJS, see #28 (comment)
1 parent b7dc227 commit 88fd37e

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -98,27 +98,6 @@
9898
*
9999
* Additional [Chrome options](https://sites.google.com/a/chromium.org/chromedriver/capabilities) can be set in `goog:chromeOptions` capabilities. Note that Selenium 3.8 renamed this capability from `chromeOptions` to `goog:chromeOptions`.
100100
*
101-
*
102-
* ### PhantomJS
103-
*
104-
* PhantomJS is a [headless browser](https://en.wikipedia.org/wiki/Headless_browser) alternative to Selenium Server that implements
105-
* [the WebDriver protocol](https://code.google.com/p/selenium/wiki/JsonWireProtocol).
106-
* It allows you to run Selenium tests on a server without a GUI installed.
107-
*
108-
* 1. Download [PhantomJS](http://phantomjs.org/download.html)
109-
* 2. Run PhantomJS in WebDriver mode: `phantomjs --webdriver=4444`
110-
* 3. Configure this module (in `acceptance.suite.yml`) by setting url and `phantomjs` as browser:
111-
*
112-
* ```yaml
113-
* modules:
114-
* enabled:
115-
* - WebDriver:
116-
* url: 'http://localhost/'
117-
* browser: phantomjs
118-
* ```
119-
*
120-
* Since PhantomJS doesn't give you any visual feedback, it's probably a good idea to install [Codeception\Extension\Recorder](http://codeception.com/extensions#CodeceptionExtensionRecorder) which gives you screenshots of how PhantomJS "sees" your pages.
121-
*
122101
* ### Headless Selenium in Docker
123102
*
124103
* Docker can ship Selenium Server with all its dependencies and browsers inside a single container.
@@ -3261,7 +3240,6 @@ public function scrollTo($selector, $offsetX = null, $offsetY = null)
32613240
* The tab is opened with JavaScript's `window.open()`, which means:
32623241
* * Some adblockers might restrict it.
32633242
* * The sessionStorage is copied to the new tab (contrary to a tab that was manually opened by the user)
3264-
* * It is not possible in PhantomJS.
32653243
*/
32663244
public function openNewTab()
32673245
{
@@ -3276,8 +3254,6 @@ public function openNewTab()
32763254
* <?php
32773255
* $I->closeTab();
32783256
* ```
3279-
*
3280-
* Can't be used with PhantomJS
32813257
*/
32823258
public function closeTab()
32833259
{
@@ -3297,9 +3273,6 @@ public function closeTab()
32973273
* // switch to 2nd next tab
32983274
* $I->switchToNextTab(2);
32993275
* ```
3300-
*
3301-
* Can't be used with PhantomJS
3302-
*
33033276
* @param int $offset 1
33043277
*/
33053278
public function switchToNextTab($offset = 1)
@@ -3319,9 +3292,6 @@ public function switchToNextTab($offset = 1)
33193292
* // switch to 2nd previous tab
33203293
* $I->switchToPreviousTab(2);
33213294
* ```
3322-
*
3323-
* Can't be used with PhantomJS
3324-
*
33253295
* @param int $offset 1
33263296
*/
33273297
public function switchToPreviousTab($offset = 1)

0 commit comments

Comments
 (0)