Search Results for

    Show / Hide Table of Contents

    Class Image

    Defines a wrapper for the core web Image control.

    Inheritance
    System.Object
    WebElementWrapper
    Image
    Implements
    IElementWrapper<RemoteWebElement>
    Inherited Members
    WebElementWrapper.Element
    WebElementWrapper.ElementDriver
    WebElementWrapper.Driver
    WebElementWrapper.IsEnabled
    WebElementWrapper.IsVisible
    WebElementWrapper.FindElement(By)
    WebElementWrapper.FindElements(By)
    WebElementWrapper.VerifyElementNotShown(By)
    WebElementWrapper.Click()
    WebElementWrapper.GetAttribute(String)
    WebElementWrapper.VerifyElementShown(By)
    WebElementWrapper.VerifyElementShown(By, Nullable<TimeSpan>)
    WebElementWrapper.VerifyElementsShown(By)
    WebElementWrapper.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Web.Elements.Core
    Assembly: Legerity.Web.dll
    Syntax
    public class Image : WebElementWrapper, IElementWrapper<RemoteWebElement>

    Constructors

    | Improve this Doc View Source

    Image(IWebElement)

    Initializes a new instance of the Image class.

    Declaration
    public Image(IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The reference.

    | Improve this Doc View Source

    Image(RemoteWebElement)

    Initializes a new instance of the Image class.

    Declaration
    public Image(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The reference.

    Properties

    | Improve this Doc View Source

    AltText

    Gets the alt text of the image.

    Declaration
    public virtual string AltText { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Height

    Gets the height of the image.

    Declaration
    public virtual double Height { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Source

    Gets the source URI of the image.

    Declaration
    public virtual string Source { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Width

    Gets the width of the image.

    Declaration
    public virtual double Width { get; }
    Property Value
    Type Description
    System.Double

    Operators

    | Improve this Doc View Source

    Implicit(RemoteWebElement to Image)

    Allows conversion of a to the Image without direct casting.

    Declaration
    public static implicit operator Image(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The .

    Returns
    Type Description
    Image

    The Image.

    Implements

    IElementWrapper<TElement>

    Extension Methods

    WebElementWrapperExtensions.TryWaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32, Action<Exception>)
    WebElementWrapperExtensions.WaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps