WinAppDriver - 获取窗口句柄标题
我需要创建一种使用 WinAppDriver 从一个窗口切换到另一个窗口的算法,如下所示 windowsDriver.SwitchTo().Window(allWindowHandles[0])
。但是,我还需要在 windowsDriver.WindowHandles
中找到的页面标题,或者至少是当前焦点页面的标题及其十六进制值。有什么方法可以使用 Winappdriver 实现此目的吗?
我应该提到的是,我通过 Appium 将 WinAppDriver 与 Selenium Grid 一起使用,以实现测试自动化目的。因此,我不知道网格中的哪台机器将执行特定的测试。
I need to create an algorithm that switches from one windows to another using WinAppDriver like this windowsDriver.SwitchTo().Window(allWindowHandles[0])
. However, I also need the Title of the pages found in windowsDriver.WindowHandles
, or at least the Title of the currently focused page and its hex value. Is there any way I could achieve this using Winappdriver?
I should mention that I'm using WinAppDriver with a Selenium Grid via Appium, for Test Automation purposes. Therefore, I do not know which machine in the grid is going to execute a particular Test.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论