@Smoke
@Test(timeout = 300000)
public void converter() throws InterruptedException {
choice.as(Selectable.class).selector().select("1");
converter.mouse().click();
final LookupCriteria marker = new ByText("Converted", StringComparePolicy.SUBSTRING);
final Parent choiceAsParent = choice.as(Parent.class, Node.class);
choiceAsParent.lookup(marker).wait(1);
choice.mouse().click();
final Lookup<? extends Scene> popupLookup = Root.ROOT.lookup(new ByWindowType(PopupWindow.class)).lookup(Scene.class);
popupLookup.wrap().as(Parent.class, Node.class).lookup(marker).wait(3);
removeConverter.mouse().click();
choice.waitState(new State<Integer>() {
public Integer reached() {
return choiceAsParent.lookup(marker).size();
}
}, 0);
choice.mouse().click();
choice.waitState(new State<Integer>() {
public Integer reached() {
return popupLookup.wrap().as(Parent.class, Node.class).lookup(marker).size();
}
}, 0);
}
ChoiceTest.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:openjfx-8u-dev-tests
作者:
评论列表
文章目录