除了thread.sleep()
. 我尝试了隐式等待但得到了这个异常:
“'setTimeout' 无效或执行的命令”
下面是代码片段:
options = new DesktopOptions();
options.setApplication(String);
driver = new winiumDriver(new URL("..."),options);
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);