Table of Contents

Class AudioTag

Namespace
Ranorex
Assembly
Ranorex.Plugin.Web.dll

The HTML5 'audio' tag.

public class AudioTag : WebElement, IAdapter
Inheritance
AudioTag
Implements
Inherited Members

Constructors

AudioTag()

Creates a new AudioTag adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!

protected AudioTag()

AudioTag(Element)

Creates a new AudioTag adapter instance.

public AudioTag(Element element)

Parameters

element Element

The element to create the adapter for.

Exceptions

NullReferenceException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Properties

Autoplay

The 'autoplay' attribute of the element.

public virtual string Autoplay { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Controls

The 'controls' attribute of the element.

public virtual string Controls { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Loop

The 'loop' attribute of the element.

public virtual string Loop { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Preload

The 'preload' attribute of the element.

public virtual string Preload { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Src

The 'src' attribute of the element.

public virtual string Src { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Title

The 'title' attribute of the element.

public virtual string Title { get; set; }

Property Value

string

Exceptions

SetAttributeFailedException

Thrown if setting the attribute value failed.

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static AudioTag FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

AudioTag

The AudioTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

FromPath(string)

Converts a string to an instance of this class by searching the root.

public static AudioTag FromPath(string path)

Parameters

path string

The search path.

Returns

AudioTag

The AudioTag.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Operators

implicit operator AudioTag(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator AudioTag(Element element)

Parameters

element Element

The element to convert.

Returns

AudioTag

The AudioTag.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

implicit operator AudioTag(string)

Implicitly converts a string to an instance of this class by searching the root.

public static implicit operator AudioTag(string path)

Parameters

path string

The search path.

Returns

AudioTag

The AudioTag.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.