mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-25 23:51:04 +00:00
23 lines
495 B
TypeScript
23 lines
495 B
TypeScript
import { browser, by, element } from 'protractor';
|
|
import { ServersPage } from './server.po';
|
|
|
|
export class TestHelper {
|
|
sleep(value: number) {
|
|
browser.sleep(value);
|
|
}
|
|
|
|
waitForLoading() {
|
|
browser.waitForAngular();
|
|
}
|
|
|
|
async asyncForEach(array, callback) {
|
|
for (let index = 0; index < array.length; index++) {
|
|
await callback(array[index], index, array);
|
|
}
|
|
}
|
|
|
|
getCurrentUrl() {
|
|
return browser.getCurrentUrl();
|
|
}
|
|
}
|