Does webdriver.io waitForVisible method timeout if a new page is loaded? -


using latest version of webdriver.io (3.1)

i'm running weird issue waitforvisible method timing out instantly instead of after 5000ms timeout i've set. doesn't happen , if add 500ms pause before method seems resolve issue. have feeling waitforvisible method being called before new page begins load after click , i'm betting if page changed causes method fail , reason failure being reported timeout?

if happening there way around other adding pause? don't pauses because seem make tests fragile.

test('clicking logout link logs user out , routes login view', function(){         return client.click('#header [data-action="app:logout"]')         .pause(1000) //this pause fixes issue         //this method instantly times out         .waitforvisible('#login', 10000).then(function(result){             expect(result, 'did not log out');         });     }); 


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -