2gis / Winium.Mobile

Winium.Mobile is Selenium Remote WebDriver implementation for automated testing of Windows StoreApps and Silverlight apps, tested on emulators (currently only Windows Phone/Mobile apps are supported).
Mozilla Public License 2.0
51 stars 29 forks source link

Implement 'IsElementSelected' for 'RadioButton' class #141

Closed dnovikau closed 8 years ago

dnovikau commented 8 years ago

image

Is there any way to find out whether radio button element is 'Selected' or not? I need to know the state of radio button to apply appropriate strategy in my test scenario

NickAb commented 8 years ago

IsElementSelected is not implemented yet.

For a qucik fix you can use GetElementAttribute https://github.com/2gis/Winium.StoreApps/wiki/Supported-Commands#getelementattribute to get any property of element. I think you can use IsChecked property. Make sure to enable property access in session desired capabilities according to the link.

dnovikau commented 8 years ago

Provided solution is fully working