jdi/ jdiframework

locators tree

In my case i have a selector list not in a core window. For window used locator ".uni-DialogBox" but listLocator(.gwt-Label.selectbox-item__label) not in this dom [ERROR 54:49.549] : >>> NewOrderWindow.orderType (>css='.uni-DialogBox'>css='.gwt-Label.selectbox-item__label') , see screen. How ignore parent locator only for one locator?

You can use @Root annotation for an element in order to use only its locator like

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

Or switch off inherited locators for the whole project in test.properties
smart.search=off
or
smart.search=false

暂无
暂无

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question JDI:How to iterate over HashMap Java debugger interface (JDI) - How to set a breakpoint how to use diferent properties files in JDI How to define own complex WebElement in JDI test framework During debugging, how to evaluate a piece of code in the debug target VM? JDI: How to pause a Java application (JVM) like in the debugger How to import and use com.sun.jdi.VirtualMachine How to know if an `com.sun.jdi.ObjectReference` is an Enum? Loss of an element from hashtable using JDI JDI: How to get the ObjectReference value?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM