getProperties method
Map<String, dynamic>
getProperties(
)
override
Implementation
@override
Map<String, dynamic> getProperties() {
Map<String, dynamic> properties = super.getProperties();
Text textWidget = element.widget as Text;
// properties[WidgetProperty.className.name] =
// RanorexSupportedClassName.uiLabel;
// properties[WidgetProperty.text.name] = textWidget.data ?? "";
// properties[WidgetProperty.textColor.name] =
// colorToHex(textWidget.style?.color);
// properties[WidgetProperty.accessibilityLabel.name] =
// getAccessibilityLabel(textWidget);
// properties[WidgetProperty.caption.name] = textWidget.data ?? "";
properties[WidgetProperty.text.name] = textWidget.data ?? '';
properties[WidgetProperty.className.name] = RanorexSupportedClassName.uiLabel;
properties[WidgetProperty.textColor.name] = textWidget.style?.color != null
? '#${(textWidget.style!.color!.value & 0xFFFFFF).toRadixString(16).padLeft(6, '0').toUpperCase()}'
: '';
return properties;
}