Skip to content

Commit 37b347e

Browse files
committed
copy org.openqa.selenium.interactions.InvalidCoordinatesException from the Selenium project.
This is a workaround to prevent HtmlUnitDriver 3.60.0 from crashing in Selenium 4.1.3.
1 parent 22c85e9 commit 37b347e

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// This file was copied from the Selenium project as a workaround to prevent HtmlUnitDriver 3.60.0 from crashing in Selenium 4.1.3.
2+
3+
// Licensed to the Software Freedom Conservancy (SFC) under one
4+
// or more contributor license agreements. See the NOTICE file
5+
// distributed with this work for additional information
6+
// regarding copyright ownership. The SFC licenses this file
7+
// to you under the Apache License, Version 2.0 (the
8+
// "License"); you may not use this file except in compliance
9+
// with the License. You may obtain a copy of the License at
10+
//
11+
// http://www.apache.org/licenses/LICENSE-2.0
12+
//
13+
// Unless required by applicable law or agreed to in writing,
14+
// software distributed under the License is distributed on an
15+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
// KIND, either express or implied. See the License for the
17+
// specific language governing permissions and limitations
18+
// under the License.
19+
20+
package org.openqa.selenium.interactions;
21+
22+
import org.openqa.selenium.WebDriverException;
23+
24+
/**
25+
* Indicates that the coordinates provided to an interactions operation are invalid. This, most
26+
* likely, means that a move operation was provided with invalid coordinates or that an action that
27+
* depends on mouse position (like click) was not preceded by a move operation.
28+
*/
29+
public class InvalidCoordinatesException extends WebDriverException {
30+
31+
private static final long serialVersionUID = 1L;
32+
33+
@SuppressWarnings("javadoc")
34+
public InvalidCoordinatesException(String message) {
35+
super(message);
36+
}
37+
}

0 commit comments

Comments
 (0)