0

定位器树

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

4

1 回答 1

0

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

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


或者在 test.properties smart.search=off

smart.search=false中关闭整个项目的继承定位器

于 2021-03-01T19:25:52.083 回答