UITestExtensions.Unit_MoveSlider (System.Windows.Controls.Slider, SoftHai.Testing.UITest.SliderDirections, SoftHai.Testing.UITest.SliderChangeValues)
Function moves a slider
Namespace:SoftHai.Testing.UITestAssembly:SoftHai.Testing
Syntax
Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_MoveSlider( _
ByVal S As System.Windows.Controls.Slider, _
ByVal pDirection As SoftHai.Testing.UITest.SliderDirections, _
ByVal pChangeValue As SoftHai.Testing.UITest.SliderChangeValues _
)
C#
[ExtensionAttribute()]
public void Unit_MoveSlider(
this System.Windows.Controls.Slider S,
SoftHai.Testing.UITest.SliderDirections pDirection,
SoftHai.Testing.UITest.SliderChangeValues pChangeValue
)
Parameter
SType:
System.Windows.Controls.SliderNews Slider Control
pDirectionType:
SoftHai.Testing.UITest.SliderDirectionsSpecifies the direction of movement
pChangeValueType:
SoftHai.Testing.UITest.SliderChangeValuesSpecifies the size of the movement
Remarks
For information about the test they see Enums
SliderDirections and here
Slider Change Values
Example
First, the namespace is imported, so that the extension methods are available:
C#
using SoftHai.Testing.UITest;
Visual Basic
Imports SoftHai.Testing.UITest
Subsequently, the extension method be used as follows:
C#
Slider S = new Slider();
...
S.Unit_MoveSlider(SliderDirections.Increment, SliderChangeValues.Small);
Visual Basic
Dim CB as new Slider()
...
S.Unit_MoveSlider(SliderDirections.Increment, SliderChangeValues.Small)
This WikiPage was created with
Codeplex WikiEditor