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

Commit 1bb077b

Browse files
ReénseOndraM
authored andcommitted
Fix typo in isJavascriptEnabled
1 parent b5e3b1b commit 1bb077b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Remote/DesiredCapabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function setJavascriptEnabled($enabled)
145145
$browser = $this->getBrowserName();
146146
if ($browser && $browser !== WebDriverBrowserType::HTMLUNIT) {
147147
throw new Exception(
148-
'isJavascriptEnable() is a htmlunit-only option. ' .
148+
'isJavascriptEnabled() is a htmlunit-only option. ' .
149149
'See https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities#read-write-capabilities.'
150150
);
151151
}

tests/unit/Remote/DesiredCapabilitiesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testShouldProvideAccessToCapabilitiesUsingSettersAndGetters()
6363

6464
/**
6565
* @expectedException \Exception
66-
* @expectedExceptionMessage isJavascriptEnable() is a htmlunit-only option
66+
* @expectedExceptionMessage isJavascriptEnabled() is a htmlunit-only option
6767
*/
6868
public function testShouldNotAllowToDisableJavascriptForNonHtmlUnitBrowser()
6969
{

0 commit comments

Comments
 (0)