Search Results for

    Show / Hide Table of Contents

    Class FileInput

    Defines a wrapper for the core web Input file control.

    Inheritance
    System.Object
    WebElementWrapper
    FileInput
    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 FileInput : WebElementWrapper, IElementWrapper<RemoteWebElement>

    Constructors

    | Improve this Doc View Source

    FileInput(IWebElement)

    Initializes a new instance of the FileInput class.

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

    The reference.

    | Improve this Doc View Source

    FileInput(RemoteWebElement)

    Initializes a new instance of the FileInput class.

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

    The reference.

    Properties

    | Improve this Doc View Source

    FilePath

    Gets the file path for the selected file.

    Declaration
    public virtual string FilePath { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    ClearFile()

    Clears the selected file.

    Declaration
    public virtual void ClearFile()
    | Improve this Doc View Source

    SetAbsoluteFilePath(String)

    Sets the selected file by an absolute file path.

    Declaration
    public virtual void SetAbsoluteFilePath(string filePath)
    Parameters
    Type Name Description
    System.String filePath

    The file path.

    Operators

    | Improve this Doc View Source

    Implicit(RemoteWebElement to FileInput)

    Allows conversion of a to the FileInput without direct casting.

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

    The .

    Returns
    Type Description
    FileInput

    The FileInput.

    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