|
|
@ -23,10 +23,10 @@ function openFile (browser: NightwatchBrowser, name: string, done: VoidFunction) |
|
|
|
browser.element('css selector', '[data-id="verticalIconsKindfilePanel"] img[data-id="selected"]', (result) => { |
|
|
|
browser.element('css selector', '[data-id="verticalIconsKindfilePanel"] img[data-id="selected"]', (result) => { |
|
|
|
if (result.status === 0) { |
|
|
|
if (result.status === 0) { |
|
|
|
done() |
|
|
|
done() |
|
|
|
} else browser.clickLaunchIcon('filePanel').perform(done()) |
|
|
|
} else browser.clickLaunchIcon('filePanel').perform(done) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
browser.clickLaunchIcon('filePanel').perform(done()) |
|
|
|
browser.clickLaunchIcon('filePanel').perform(done) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|