UITechnologyManager.GetElementFromPoint 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetElementFromPoint(Int32, Int32) |
检索位于给定屏幕坐标位置的元素。 |
| GetElementFromPoint(Int32, Int32, AutomationElement) |
GetElementFromPoint(Int32, Int32)
检索位于给定屏幕坐标位置的元素。
public:
abstract Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetElementFromPoint(int pointX, int pointY);
public abstract Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetElementFromPoint (int pointX, int pointY);
abstract member GetElementFromPoint : int * int -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public MustOverride Function GetElementFromPoint (pointX As Integer, pointY As Integer) As IUITechnologyElement
参数
- pointX
- Int32
屏幕位置的 x 坐标。
- pointY
- Int32
屏幕位置的 y 坐标。
返回
提供的位置处的元素。
实现
适用于
GetElementFromPoint(Int32, Int32, AutomationElement)
public:
virtual Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyElement ^ GetElementFromPoint(int pointX, int pointY, System::Windows::Automation::AutomationElement ^ ceilingElement);
public virtual Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement GetElementFromPoint (int pointX, int pointY, System.Windows.Automation.AutomationElement ceilingElement);
abstract member GetElementFromPoint : int * int * System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
override this.GetElementFromPoint : int * int * System.Windows.Automation.AutomationElement -> Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Public Overridable Function GetElementFromPoint (pointX As Integer, pointY As Integer, ceilingElement As AutomationElement) As IUITechnologyElement
参数
- pointX
- Int32
- pointY
- Int32
- ceilingElement
- AutomationElement