internal void SelectSettingsRadioBtn(string preference) { ElementLocatorExtensions.Scrollup(); ElementLocatorExtensions.GetElementXpath(paymentPreferences, preference).ClickButton(); Assert.IsTrue(ElementLocatorExtensions.GetElementXpath(paymentPreferences, preference).GetElementValueByAttribute("class").Contains("checked"), "radio button is not selected."); }