/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/common/UITestAutomation/Element/RadioButton.cs
38 строк
1 KB
Shawn Yuan
[UITest] Added UITest for advancedPaste (#40745)
23 июл 2025, 12:18
Не верифицирован
23 июл 2025, 12:18
37c80b4
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.PowerToys.UITest { /// <summary> /// Represents a radio button UI element in the application. /// </summary> public class RadioButton : Element { private static readonly string ExpectedControlType = "ControlType.RadioButton"; /// <summary> /// Initializes a new instance of the <see cref="RadioButton"/> class. /// </summary> public RadioButton() { this.TargetControlType = RadioButton.ExpectedControlType; } /// <summary> /// Gets a value indicating whether the RadioButton is selected. /// </summary> public bool IsSelected => this.Selected; /// <summary> /// Select the RadioButton. /// </summary> public void Select() { if (!this.IsSelected) { this.Click(); } } } }