question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find visible elements

See original GitHub issue

Hi,

system characteristics:

**iPhone 6s iOS 10.2 Appium Desktop 1.10.0 Xcode 10.1 MacOS High Sierra 10.13.6

iPhone 7 iOS 12.2 Appium Desktop 1.10.0 Xcode 10.1 MacOS High Sierra 10.13.6**

In a specific section of the application under test, I tried to find all ‘XCUIElementTypeStaticText’ visible, but only one element was returned (in the pictures at the bottom).

When I tried to run the following query by iPhone 6s:

  • Predicate iOS: type == ‘XCUIElementTypeStaticText’ and visible == 1

screenshot at jan 30 11-53-31

screenshot at jan 30 11-55-58

  • **Class Chain: /XCUIElementTypeStaticText[visible == 1]

screenshot at jan 30 11-57-53

screenshot at jan 30 11-58-14

  • Xpath: //XCUIElementTypeStaticText[@visible = ‘true’]

screenshot at jan 30 11-59-03

screenshot at jan 30 12-00-45

As you can see for Xpath the elements retrieved are correct.

When I tried to run the following query by iPhone 7:

  • Predicate iOS: type == ‘XCUIElementTypeStaticText’ and visible == 1

screenshot at jan 30 12-23-25

screenshot at jan 30 12-23-45

  • **Class Chain: /XCUIElementTypeStaticText[visible == 1]

screenshot at jan 30 12-24-53

screenshot at jan 30 12-25-07

  • Xpath: //XCUIElementTypeStaticText[@visible = ‘true’]

screenshot at jan 30 12-36-19

screenshot at jan 30 12-29-12

Moreover, as you see in the picture at the bottom, the application’s elements, although them are visible, have set up visible attribute to false on iPhone 7, instead with iPhone6 the attribute visible is true.

screenshot at jan 30 11-43-27

Finally, the find action is very slow also when is captured the screenshot and page source.

This is the link pointing to log file that include all action described: appium.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mykola-mokhnachcommented, Jan 30, 2019

At some point of time Appium started to use the visibility attribute provided by XCTest instead of the custom hacky logic. This is how it happened.

0reactions
mrk-hancommented, Nov 18, 2019

@mykola-mokhnach Do you know if anyone reported this to Apple yet? Is the workaround for this using simpleIsVisibleCheck?

Is there a way to enable that in the appium desktop inspector too?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium webdriver can't find visible element - Stack Overflow
1 Answer 1 ... As you said that it is a popup window, it is very likely that the button is in an...
Read more >
[Question] Unable to locate visible element · Issue #336 - GitHub
The problem seems to be in Link<_> . As in your HTML sample the clickable elements are not links ( <a> tag) but...
Read more >
Unable to find visible elements - Issues/Bugs - Appium Discuss
In a specific section of the application under test, I tried to find all 'XCUIElementTypeStaticText' visible, but only one element was returned ...
Read more >
Element is not currently visible and may not be manipulated
I am getting this error "Element is not currently visible and may not be manipulated" when trying to click on an element. The...
Read more >
Element Not Visible Selenium Capybara - ADocLib
1 Answer. true or :visible > finds only visible elements. false or :all > finds visible and non-visible elements. :hidden > only find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found