ClassFrameInfo
Information regarding a specific frame
Definition
Namespace:ArtOfTest.WebAii.Core
Assembly:ArtOfTest.WebAii.dll
Syntax:
[DataContract(Name = "FrameInfo")]
public class FrameInfo : INotifyPropertyChanged, ICloneable
Inheritance: objectFrameInfo
Implements:
Constructors
FrameInfo(string, string, string, int)
Create a new FrameInfo object.
FrameInfo(string, string, string, string, int, bool)
Create a new FrameInfo object.
Declaration
public FrameInfo(string id, string name, string baseURL, string query, int index, bool useQuery)
Parameters
id
The Frame's id.
name
The Frame's name.
baseURL
The base URL of the frame's src attribute.
query
The query part of the frame's src attribute.
index
The Frame's index.
useQuery
Whether or not to compare the query part when comparing FrameInfo objects.
FrameInfo(string, string, string, string, int, bool, bool)
Create a new FrameInfo object.
Declaration
public FrameInfo(string id, string name, string baseURL, string query, int index, bool useQuery, bool usesBaseUrlHost)
Parameters
id
The Frame's id.
name
The Frame's name.
baseURL
The base URL of the frame's src attribute.
query
The query part of the frame's src attribute.
index
The Frame's index.
useQuery
Whether or not to compare the query part when comparing FrameInfo objects.
usesBaseUrlHost
Whether or not to compare the baseURL part when comparing FrameInfo objects.
FrameInfo(string, string, string, string, int, bool, bool, string)
Create a new FrameInfo object.
Declaration
public FrameInfo(string id, string name, string baseURL, string query, int index, bool useQuery, bool usesBaseUrlHost, string testStudioTag)
Parameters
id
The Frame's id.
name
The Frame's name.
baseURL
The base URL of the frame's src attribute.
query
The query part of the frame's src attribute.
index
The Frame's index.
useQuery
Whether or not to compare the query part when comparing FrameInfo objects.>
usesBaseUrlHost
Whether or not to compare the baseURL part when comparing FrameInfo objects.
testStudioTag
TestStudio tag.
Properties
BaseURL
The frame's src value. Used only if id/name is not set.
Declaration
[DataMember(Name = "_baseURL")]
public string BaseURL { get; set; }
Property Value
Id
Get frame id.
Declaration
[DataMember(Name = "_id")]
public string Id { get; set; }
Property Value
Index
Get frame index.
Declaration
[DataMember(Name = "_index")]
public int Index { get; set; }
Property Value
Name
Get frame name.
Declaration
[DataMember(Name = "_name")]
public string Name { get; set; }
Property Value
Query
The frame's query part of the src value. Used only if id/name is not set.
Declaration
[DataMember(Name = "_query", IsRequired = false)]
public string Query { get; set; }
Property Value
Rectangle
The last rectangle value using GetRectangle();
Declaration
[Browsable(false)]
public Rectangle Rectangle { get; }
Property Value
Src
The frame's src value. Used only if id/name is not set.
Declaration
[Browsable(false)]
public string Src { get; set; }
Property Value
TestStudioTag
Get frame id.
Declaration
[DataMember(Name = "TestStudioTag")]
public string TestStudioTag { get; set; }
Property Value
UniqueId
Gets the unique id of the frame for that session. Note: This property is not garanteed to be the same between requests to the same page so it shouldn't be serialized as part of this frame's information. This is an IE specific property.
Declaration
[Browsable(false)]
public string UniqueId { get; }
Property Value
Methods
Clone()
Clone a frame info object.
Declaration
public object Clone()
Returns
The frame info object.
Implements
Equals(object)
Determines if two FrameInfo objects are equal.
GetHashCode()
Get hash code of this FrameInfo object.
Declaration
public override int GetHashCode()
Returns
The hash code.
Overrides
GetIndexer(out string)
Get the set indexer on this FrameInfo
GetRectangle()
Returns this Frame's Rectangle in screen coordinates.
Declaration
public Rectangle GetRectangle()
Returns
The frame's rectangular screen coordinates.
Exceptions
Thrown when we can't get the rectangle coordinates of a Frame from the browser.
ToString()
String representation of the frame info.
Declaration
public override string ToString()
Returns
The string.
Overrides
Events
PropertyChanged
Occurs when a property on the FrameInfo object changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements