def test_position_parsing(ui_element, mock_ax_element):
    """Test position parsing from AX element"""
    with patch.object(ui_element, "attribute", return_value=mock_ax_element):
        pos = ui_element.position()
        assert pos == (100.0, 200.0)
Test position parsing from AX element
tests/test_uielement_macos.py