When an element is toggled on, I am looking to identify two specific colours: rgb(40, 170, 228) and rgb(101, 113, 151) when it is toggled off. My options are limited as I am using Iwebdriver, which restricts the methods available to me.
I attempted to retrieve the background colour with
string color = IWebElement.GetCssValue("background-color");
, but encountered an error due to GetCSSValue not being present.
Error Message: iWebdriver Does Not Contain A Definition For GetCssValue