Skip to content

Commit 13895bc

Browse files
committed
Add all W3C WebDriver exceptions
1 parent a94e33b commit 13895bc

File tree

52 files changed

+487
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+487
-55
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
// Copyright 2004-present Facebook. All Rights Reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
16+
namespace Facebook\WebDriver\Exception;
17+
18+
/**
19+
* The Element Click command could not be completed because the element receiving the events is obscuring the element
20+
* that was requested clicked.
21+
*/
22+
class ElementClickInterceptedException extends WebDriverException
23+
{
24+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
// Copyright 2004-present Facebook. All Rights Reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
16+
namespace Facebook\WebDriver\Exception;
17+
18+
/**
19+
* A command could not be completed because the element is not pointer- or keyboard interactable.
20+
*/
21+
class ElementNotInteractableException extends WebDriverException
22+
{
23+
}

lib/Exception/ElementNotSelectableException.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Facebook\WebDriver\Exception;
1717

18-
class ElementNotSelectableException extends WebDriverException
18+
/**
19+
* @deprecated Use Facebook\WebDriver\Exception\ElementNotInteractableException
20+
*/
21+
class ElementNotSelectableException extends ElementNotInteractableException
1922
{
2023
}

lib/Exception/ElementNotVisibleException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Facebook\WebDriver\Exception;
1717

18+
/**
19+
* @deprecated Removed in W3C WebDriver
20+
*/
1821
class ElementNotVisibleException extends WebDriverException
1922
{
2023
}

lib/Exception/ExpectedException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Facebook\WebDriver\Exception;
1717

18+
/**
19+
* @deprecated Removed in W3C WebDriver
20+
*/
1821
class ExpectedException extends WebDriverException
1922
{
2023
}

lib/Exception/IMEEngineActivationFailedException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Facebook\WebDriver\Exception;
1717

18+
/**
19+
* @deprecated Removed in W3C WebDriver
20+
*/
1821
class IMEEngineActivationFailedException extends WebDriverException
1922
{
2023
}

lib/Exception/IMENotAvailableException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Facebook\WebDriver\Exception;
1717

18+
/**
19+
* @deprecated Removed in W3C WebDriver
20+
*/
1821
class IMENotAvailableException extends WebDriverException
1922
{
2023
}

lib/Exception/IndexOutOfBoundsException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
namespace Facebook\WebDriver\Exception;
1717

18+
/**
19+
* @deprecated Removed in W3C WebDriver
20+
*/
1821
class IndexOutOfBoundsException extends WebDriverException
1922
{
2023
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
// Copyright 2004-present Facebook. All Rights Reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
16+
namespace Facebook\WebDriver\Exception;
17+
18+
/**
19+
* Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired
20+
* or invalid TLS certificate.
21+
*/
22+
class InsecureCertificateException extends WebDriverException
23+
{
24+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
// Copyright 2004-present Facebook. All Rights Reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
16+
namespace Facebook\WebDriver\Exception;
17+
18+
/**
19+
* The arguments passed to a command are either invalid or malformed.
20+
*/
21+
class InvalidArgumentException extends WebDriverException
22+
{
23+
}

0 commit comments

Comments
 (0)