python-client: ios: Failed to get 'visible' attribute of a webelement

Appium server: 1.6.5 osx: 10.12 Appium-Python-Client==0.24 selenium==3.3.1 ios: 9.3.5

After finding elements by xpath (‘//XCUIElementTypeButton[contains(@name,“menu_”)]’), want to check if some elements are visible or not, using get_attribute(‘visible’). The request failed at (webelement.py):

            resp = self._execute(Command.GET_ELEMENT_ATTRIBUTE, {'name': name})
            attributeValue = resp.get('value')
            if attributeValue is not None:
                if name != 'value' and attributeValue.lower() in ('true', 'false'):
                    attributeValue = attributeValue.lower()

with the following exception: AttributeError: ‘bool’ object has no attribute ‘lower’.

This works fine with the Appium Inspector (1.2.0.beta-3).

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

done. it works fine (previous unicode workaround in webelement.py removed), the get_attribute('visible') request returns u'true' or u'false'