Fixed the problems that were caused by timing issue

This commit is contained in:
nakanishi
2018-08-27 17:34:04 +09:00
parent 72fe30892e
commit ecc4973645
9 changed files with 31 additions and 20 deletions

View File

@@ -38,6 +38,12 @@ function init() {
var ret = browser.getText(selector);
return ret;
}, false);
browser.addCommand("selectWithWait", function(selector, value) {
browser.waitForVisible(selector, 5000);
var ret = browser.selectByValue(selector, value);
return ret;
}, false);
}
module.exports = {