Skip to content

Tests to reproduce a race condition in ExpectedConditions.visibilityOf, when element is removed between isPresent and isDisplayed

License

Notifications You must be signed in to change notification settings

tilmanschweitzer/protractor-save-expected-conditions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm install --save-dev protractor-save-expected-conditions

Global usage in onPrepare

Override the function visibilityOf and textToBePresentInElement globally;

// protractorConfig.js
exports.config = {
    baseUrl: 'http://localhost:8080/',
    capabilities: {
        browserName: 'chrome'
    },
    framework: 'jasmine',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['specs/*.spec.js'],
    onPrepare: function() {
        var saveExpectedConditions = require('protractor-save-expected-conditions');
        protractor.ExpectedConditions.visibilityOf = saveExpectedConditions.saveVisibilityOf;
        protractor.ExpectedConditions.textToBePresentInElement = saveExpectedConditions.saveTextToBePresentInElement;
    }
};

About

Tests to reproduce a race condition in ExpectedConditions.visibilityOf, when element is removed between isPresent and isDisplayed

Resources

License

Stars

Watchers

Forks

Packages

No packages published