@@ -68,9 +68,7 @@ module.exports = class BasePage {
68
68
await this . driver . sleep ( 250 )
69
69
return this . waitForDisplayed ( ADMIN_TAB )
70
70
}
71
- async clickOnOverviewTab ( ) {
72
- return this . click ( OVERVIEW_TAB )
73
- }
71
+
74
72
async clickOnChannelsTab ( ) {
75
73
return this . click ( CHANNELS_TAB )
76
74
}
@@ -154,6 +152,16 @@ module.exports = class BasePage {
154
152
} catch ( e ) {
155
153
return Promise . resolve ( false )
156
154
}
155
+ /*
156
+ let element = await driver.findElement(FORM_POPUP)
157
+ return this.driver.wait(until.elementIsVisible(element), this.timeout / 2,
158
+ 'Timed out after [timeout=' + this.timeout + ';polling=' + this.polling + '] awaiting till visible ' + element,
159
+ this.polling / 2).then(function onWarningVisible(e) {
160
+ return Promise.resolve(true)
161
+ }, function onError(e) {
162
+ return Promise.resolve(false)
163
+ })
164
+ */
157
165
}
158
166
159
167
async isPopupWarningNotDisplayed ( ) {
@@ -251,10 +259,8 @@ module.exports = class BasePage {
251
259
try {
252
260
return this . waitForVisible ( await this . waitForLocated ( locator ) )
253
261
} catch ( error ) {
254
- console . log ( "Error: " + error )
255
262
if ( error . name . includes ( "StaleElementReferenceError" ) ) {
256
263
retry = true
257
- console . error ( "Failed to StaleElementReferenceError " + locator + " due to " + error )
258
264
} else if ( ! error . name . includes ( "NoSuchSessionError" ) ) {
259
265
retry = false
260
266
console . error ( "Failed to waitForDisplayed " + locator + " due to " + error )
0 commit comments