I have this code:
IJavaScriptExecutor js = driver as IJavaScriptExecutor;
var colorCSS = js.ExecuteScript(@"jQuery('alert-danger').CSS('Background')");
And colorCSS doesn't contains bacgrounds value. Why?
If I use this jquery script in console, than it works.
Has someone any ideas?
returnin your query likereturn jQuery('alert-danger').CSS('Background'), hope its same in C# tooas string.