Table of Contents

Interface IToggle

A toggle object in a mobile application.

Inherited Members
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
IUiObjectBase.Tap()
IUiObjectBase.Tap(TapArgs)
IUiObjectBase.LongPress()
IUiObjectBase.LongPress(LongPressArgs)
IUiObjectBase.Swipe(SwipeDirection)
IUiObjectBase.Swipe(SwipeDirection, SwipeArgs)
IUiObjectBase.Pan(Location, Location)
IUiObjectBase.Pan(Point, Point)
IUiObjectBase.Pan(Point, Point, PanArgs)
IUiObjectBase.Pinch(double)
IUiObjectBase.Pinch(double, PinchArgs)
IUiObjectBase.Location
IUiObjectBase.AccessibilityId
IUiObjectBase.ClassName
IUiObjectBase.Container
IUiObjectBase.IsClickable
IUiObjectBase.IsFocused
IUiObjectBase.IsFocusable
IUiObjectBase.NativeClass
IUiObjectBase.ResourceId
IUiObjectBase.Size
IUiObjectBase.IsCheckable
IUiObjectBase.IsChecked
IUiObjectBase.Text
IUiObjectBase.Hint
IUiObjectBase.MobileCenterIndex
IEnabledProvider.IsEnabled
Namespace: HP.LFT.SDK.Mobile
Assembly: HP.LFT.SDK.dll
Syntax
public interface IToggle : ITestObject, ITestObjectDescriber, IUiObjectBase, IEnabledProvider

Methods

Set(bool)

Sets the state of the object.

Declaration
void Set(bool state)
Parameters
Type Name Description
bool state

Indicates whether this toggle will be checked.

Remarks

For Android toggles (where Class="toggleButton"), use Set(string) giving the state to set as the parameter.

Set(string)

Sets the state of the object by name.

Declaration
void Set(string state)
Parameters
Type Name Description
string state

Possible values: The states defined in the toggle object.

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)