Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //function looks for 'el', then switches iframe and extracts the desired cssValur, then compares it to the 'value' we expect
- Page.checkCssValue = function (el, cssValue, value){
- //find function, the '0' represents the iframe index
- var newEl = this.find(el, 0);
- return newEl.getCssValue(cssValue).then(function(result){
- if(result !== value){
- console.log(result + " and " + value + " Do not Match.")
- return Page.checkCssValue(el, cssValue, value);
- }
- else{
- console.log(result + " and " + value + " Do Match!")
- return result;
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement