def test_size_parsing(ui_element, mock_size_element):
    """Test size parsing from AX element"""
    with patch.object(ui_element, "attribute", return_value=mock_size_element):
        size = ui_element.size()
        assert size == (300.0, 400.0)
Test size parsing from AX element
tests/test_uielement_macos.py