Skip to content

Commit f719edc

Browse files
committed
Merge branch 'ThomasLandauer-patch-1'
2 parents 23f5ee7 + 19cb365 commit f719edc

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -123,26 +123,6 @@
123123
* acceptInsecureCerts: true # allow self-signed certificates
124124
* ```
125125
*
126-
* ### PhantomJS
127-
*
128-
* PhantomJS is a [headless browser](https://en.wikipedia.org/wiki/Headless_browser) alternative to Selenium Server that implements
129-
* [the WebDriver protocol](https://code.google.com/p/selenium/wiki/JsonWireProtocol).
130-
* It allows you to run Selenium tests on a server without a GUI installed.
131-
*
132-
* 1. Download [PhantomJS](http://phantomjs.org/download.html)
133-
* 2. Run PhantomJS in WebDriver mode: `phantomjs --webdriver=4444`
134-
* 3. Configure this module (in `acceptance.suite.yml`) by setting url and `phantomjs` as browser:
135-
*
136-
* ```yaml
137-
* modules:
138-
* enabled:
139-
* - WebDriver:
140-
* url: 'http://localhost/'
141-
* browser: phantomjs
142-
* ```
143-
*
144-
* 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.
145-
*
146126
* ### Headless Selenium in Docker
147127
*
148128
* Docker can ship Selenium Server with all its dependencies and browsers inside a single container.
@@ -3306,7 +3286,6 @@ public function scrollTo($selector, $offsetX = null, $offsetY = null)
33063286
* The tab is opened with JavaScript's `window.open()`, which means:
33073287
* * Some adblockers might restrict it.
33083288
* * The sessionStorage is copied to the new tab (contrary to a tab that was manually opened by the user)
3309-
* * It is not possible in PhantomJS.
33103289
*/
33113290
public function openNewTab()
33123291
{
@@ -3321,8 +3300,6 @@ public function openNewTab()
33213300
* <?php
33223301
* $I->closeTab();
33233302
* ```
3324-
*
3325-
* Can't be used with PhantomJS
33263303
*/
33273304
public function closeTab()
33283305
{
@@ -3342,9 +3319,6 @@ public function closeTab()
33423319
* // switch to 2nd next tab
33433320
* $I->switchToNextTab(2);
33443321
* ```
3345-
*
3346-
* Can't be used with PhantomJS
3347-
*
33483322
* @param int $offset 1
33493323
*/
33503324
public function switchToNextTab($offset = 1)
@@ -3364,9 +3338,6 @@ public function switchToNextTab($offset = 1)
33643338
* // switch to 2nd previous tab
33653339
* $I->switchToPreviousTab(2);
33663340
* ```
3367-
*
3368-
* Can't be used with PhantomJS
3369-
*
33703341
* @param int $offset 1
33713342
*/
33723343
public function switchToPreviousTab($offset = 1)

0 commit comments

Comments
 (0)