Skip to content

Commit 928168b

Browse files
implement __all__ for selenium.common (#10655)
Co-authored-by: David Burns <[email protected]>
1 parent 3824c3e commit 928168b

1 file changed

Lines changed: 68 additions & 1 deletion

File tree

py/selenium/common/__init__.py

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,71 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
from . import exceptions # noqa
18+
from .exceptions import ElementClickInterceptedException
19+
from .exceptions import ElementNotInteractableException
20+
from .exceptions import ElementNotSelectableException
21+
from .exceptions import ElementNotVisibleException
22+
from .exceptions import ImeActivationFailedException
23+
from .exceptions import ImeNotAvailableException
24+
from .exceptions import InsecureCertificateException
25+
from .exceptions import InvalidArgumentException
26+
from .exceptions import InvalidCookieDomainException
27+
from .exceptions import InvalidCoordinatesException
28+
from .exceptions import InvalidElementStateException
29+
from .exceptions import InvalidSelectorException
30+
from .exceptions import InvalidSessionIdException
31+
from .exceptions import InvalidSwitchToTargetException
32+
from .exceptions import JavascriptException
33+
from .exceptions import MoveTargetOutOfBoundsException
34+
from .exceptions import NoAlertPresentException
35+
from .exceptions import NoSuchAttributeException
36+
from .exceptions import NoSuchCookieException
37+
from .exceptions import NoSuchElementException
38+
from .exceptions import NoSuchFrameException
39+
from .exceptions import NoSuchShadowRootException
40+
from .exceptions import NoSuchWindowException
41+
from .exceptions import RemoteDriverServerException
42+
from .exceptions import ScreenshotException
43+
from .exceptions import SessionNotCreatedException
44+
from .exceptions import StaleElementReferenceException
45+
from .exceptions import TimeoutException
46+
from .exceptions import UnableToSetCookieException
47+
from .exceptions import UnexpectedAlertPresentException
48+
from .exceptions import UnexpectedTagNameException
49+
from .exceptions import UnknownMethodException
50+
from .exceptions import WebDriverException
51+
52+
53+
__all__ = ["WebDriverException",
54+
"InvalidSwitchToTargetException",
55+
"NoSuchFrameException",
56+
"NoSuchWindowException",
57+
"NoSuchElementException",
58+
"NoSuchAttributeException",
59+
"NoSuchShadowRootException",
60+
"StaleElementReferenceException",
61+
"InvalidElementStateException",
62+
"UnexpectedAlertPresentException",
63+
"NoAlertPresentException",
64+
"ElementNotVisibleException",
65+
"ElementNotInteractableException",
66+
"ElementNotSelectableException",
67+
"InvalidCookieDomainException",
68+
"UnableToSetCookieException",
69+
"RemoteDriverServerException",
70+
"TimeoutException",
71+
"MoveTargetOutOfBoundsException",
72+
"UnexpectedTagNameException",
73+
"InvalidSelectorException",
74+
"ImeNotAvailableException",
75+
"ImeActivationFailedException",
76+
"InvalidArgumentException",
77+
"JavascriptException",
78+
"NoSuchCookieException",
79+
"ScreenshotException",
80+
"ElementClickInterceptedException",
81+
"InsecureCertificateException",
82+
"InvalidCoordinatesException",
83+
"InvalidSessionIdException",
84+
"SessionNotCreatedException",
85+
"UnknownMethodException"]

0 commit comments

Comments
 (0)