forked from External/mage
* Some minor changes to sleep command.
This commit is contained in:
parent
5a072ea760
commit
2446abcc98
6 changed files with 102 additions and 100 deletions
|
|
@ -93,7 +93,7 @@ public class MageUI {
|
|||
|
||||
public void doClick(MageComponents name, int waitBeforeClick) throws InterruptedException {
|
||||
final JButton j = getButton(name);
|
||||
Thread.sleep(waitBeforeClick);
|
||||
TimeUnit.MILLISECONDS.sleep(waitBeforeClick);
|
||||
while (!j.isEnabled()) {
|
||||
TimeUnit.MILLISECONDS.sleep(10);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue