共用方式為


UITestActionExecutor 類別

實作的自訂動作支援抽象類別 UI 控制項。

繼承階層架構

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestActionExecutor
    Microsoft.VisualStudio.TestTools.UITesting.WebViewActionExecutor

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:   Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)
  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
<CLSCompliantAttribute(True)> _
Public MustInherit Class UITestActionExecutor
[CLSCompliantAttribute(true)]
public abstract class UITestActionExecutor
[CLSCompliantAttribute(true)]
public ref class UITestActionExecutor abstract
[<AbstractClass>]
[<CLSCompliantAttribute(true)>]
type UITestActionExecutor =  class end
public abstract class UITestActionExecutor

UITestActionExecutor 類型會公開下列成員。

建構函式

  名稱 描述
受保護的方法 UITestActionExecutor 初始化 UITestActionExecutor 類別的新執行個體。

回頁首

方法

  名稱 描述
公用方法 Click(UITechnologyElement, MouseButtons, ModifierKeys, Point)
公用方法 Click(UITechnologyElement, MouseButtons, ModifierKeys, Point) 按一下預設滑鼠按鈕。
公用方法 DoubleClick(UITechnologyElement, MouseButtons, ModifierKeys, Point)
公用方法 DoubleClick(UITechnologyElement, MouseButtons, ModifierKeys, Point) 按兩下預設滑鼠按鈕。
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetControlSupportLevel 取得提供者的支援層級指定的控制項。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
公用方法 Hover(UITechnologyElement, Point, Int32)
公用方法 Hover(UITechnologyElement, Point, Int32) 停留在指定之控制項的滑鼠指定持續期間的。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 MouseMove(UITechnologyElement, Point)
公用方法 MouseMove(UITechnologyElement, Point) 將滑鼠移至控制項的指定位置。
公用方法 MoveScrollWheel(UITechnologyElement, Int32, ModifierKeys)
公用方法 MoveScrollWheel(UITechnologyElement, Int32, ModifierKeys) 移動滑鼠滾輪。
公用方法 PressModifierKeys(UITechnologyElement, ModifierKeys)
公用方法 PressModifierKeys(UITechnologyElement, ModifierKeys) 按下指定的輔助按鍵,不釋放它。若要釋放輔助按鍵,應進行明確呼叫。ReleaseModifierKeysImplementation。
公用方法 ReleaseKeyboard 若無法重設鍵盤為正常狀態。
公用方法 ReleaseModifierKeys(UITechnologyElement, ModifierKeys)
公用方法 ReleaseModifierKeys(UITechnologyElement, ModifierKeys) 釋放所使用 PressModifierKeys,按下指定的輔助按鍵。
公用方法 ReleaseMouse 若無法重設滑鼠到正常狀態。
公用方法 SendKeys(UITechnologyElement, String, ModifierKeys, Boolean)
公用方法 SendKeys(UITechnologyElement, String, ModifierKeys, Boolean) 傳送按鍵產生指定的文字。
公用方法 StartDragging(UITechnologyElement, MouseButtons, ModifierKeys, Point)
公用方法 StartDragging(UITechnologyElement, MouseButtons, ModifierKeys, Point) 開始拖曳有指定按鈕的輔助按鍵,滑鼠從指定的位置。
公用方法 StopDragging(UITechnologyElement, Point, Boolean)
公用方法 StopDragging(UITechnologyElement, Point, Boolean) 停止在控制項的拖曳作業。
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.TestTools.UITesting 命名空間