Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 8375294

Browse files
authored
Merge pull request #427 from OndraM/feature/deprecate-is-javascript-enabled
Deprecate isJavascriptEnabled method of WebDriverCapabilities
2 parents 3c8e0fe + b10102f commit 8375294

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This project versioning adheres to [Semantic Versioning](http://semver.org/).
66
- Cookies should now be set using `Cookie` value object instead of an array when passed to to `addCookie()` method of `WebDriverOptions`.
77
- Cookies retrieved using `getCookieNamed()` and `getCookies()` methods of `WebDriverOptions` are now encapsulated in `Cookie` object instead of an plain array. The object implements `ArrayAccess` interface to provide backward compatibility.
88
- `ext-zip` is now specified as required dependency in composer.json (but the extension was already required by the code, though).
9+
- Deprecate `WebDriverCapabilities::isJavascriptEnabled()` method.
910

1011
### Fixed
1112
- Do not throw fatal error when `null` is passed to `sendKeys()`.

lib/Remote/DesiredCapabilities.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ public function is($capability_name)
123123
}
124124

125125
/**
126+
* @todo Remove in next major release (BC)
127+
* @deprecated All browsers are always JS enabled except HtmlUnit and it's not meaningful to disable JS execution.
126128
* @return bool Whether javascript is enabled.
127129
*/
128130
public function isJavascriptEnabled()

lib/WebDriverCapabilities.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public function getVersion();
4545
public function is($capability_name);
4646

4747
/**
48+
* @todo Remove in next major release (BC)
49+
* @deprecated All browsers are always JS enabled except HtmlUnit and it's not meaningful to disable JS execution.
4850
* @return bool Whether javascript is enabled.
4951
*/
5052
public function isJavascriptEnabled();

0 commit comments

Comments
 (0)