修复各个类之间,窗体相互不通用的问题

This commit is contained in:
彭宇琦 2020-05-26 10:53:48 +08:00
parent 5eb369d13a
commit 6f3dc8376f
1 changed files with 6 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public abstract class AbstractBy {
/**
* 存储当前定位的窗体层级
*/
private ArrayList<String> iframeNameList = new ArrayList<>();
private static ArrayList<String> iframeNameList = new ArrayList<>();
/**
* 用于存储元素通用的等待时间默认5秒
@ -261,6 +261,11 @@ public abstract class AbstractBy {
//若传参为空则切回到顶层
if (frameNameList.isEmpty()) {
switchRootFrame();
return;
}
if (!iframeNameList.isEmpty() && frameNameList.get(frameNameList.size() - 1).equals(iframeNameList.get(iframeNameList.size() - 1))) {
return;
}
//若不为空则列表进行切换