【问题标题】:how to ignore core locator for one element如何忽略一个元素的核心定位器
【发布时间】:2020-06-23 05:14:41
【问题描述】:

locators tree

在我的情况下,我有一个不在核心窗口中的选择器列表。对于使用定位器“.uni-DialogBox”的窗口,但 listLocator(.gwt-Label.selectbox-item__label) 不在此 dom [ERROR 54:49.549] 中:>>> NewOrderWindow.orderType (>css='.uni-DialogBox'> css='.gwt-Label.selectbox-item__label') ,见画面。如何只为一个定位器忽略父定位器?

【问题讨论】:

    标签: jdi jdiframework


    【解决方案1】:

    您可以对元素使用@Root 注释,以便仅使用其定位器

    @Root @UI("'.gwt-Label.selectbox-item__label") 
    UIElement enter;
    

    或者在 test.properties 中关闭整个项目的继承定位器
    智能搜索=关闭

    smart.search=false

    【讨论】:

      猜你喜欢
      • 2011-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-14
      • 1970-01-01
      • 2017-09-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多