diff --git a/Sources/WebDriver/NoSuchElementError.swift b/Sources/WebDriver/NoSuchElementError.swift index 9f538ea..62b4ff6 100644 --- a/Sources/WebDriver/NoSuchElementError.swift +++ b/Sources/WebDriver/NoSuchElementError.swift @@ -1,5 +1,5 @@ /// Thrown when findElement fails to locate an element. -public struct ElementNotFoundError: Error, CustomStringConvertible { +public struct NoSuchElementError: Error, CustomStringConvertible { /// The locator that was used to search for the element. public var locator: ElementLocator diff --git a/Sources/WebDriver/Session.swift b/Sources/WebDriver/Session.swift index 9aa1081..c812b02 100644 --- a/Sources/WebDriver/Session.swift +++ b/Sources/WebDriver/Session.swift @@ -186,7 +186,7 @@ public class Session { } } } catch { - throw ElementNotFoundError(locator: locator, sourceError: error) + throw NoSuchElementError(locator: locator, sourceError: error) } } }