【问题标题】:RFT click on second named nodeRFT 单击第二个命名节点
【发布时间】:2017-10-26 01:07:19
【问题描述】:

我有一个具有两个同名节点的 JTree。 我正在编写一个需要单击第二个命名节点的 RFT 脚本,但它只会单击它找到的第一个条目。 enter image description here 通过利用 ITestDataTree,我设法检索了所需的 ITestDataTreeNode,但不知道如何单击它。 有什么方法可以将 ITestDataTreeNode 对象转换为 GuiTestObject?

提前致谢, 史蒂文。

【问题讨论】:

    标签: rft


    【解决方案1】:

    终于找到了解决办法。

    简单如下:

            List list = new List();
    
            list.append(new Index(0)); // root
            list.append(new Index(0)); // suite
            list.append(new Index(0)); // scenario
            list.append(new Index(0)); // testcase
            list.append(new Index(1)); // action
    
            jTree().click(list); // expands second action node
    

    【讨论】:

      猜你喜欢
      • 2023-03-10
      • 2018-06-28
      • 2016-04-15
      • 2015-10-06
      • 1970-01-01
      • 2017-02-19
      • 2023-03-22
      • 2019-06-21
      • 2013-04-20
      相关资源
      最近更新 更多