Waitforexpectationswithtimeout objective c

Waitforexpectationswithtimeout objective c

By: zaur1977 Date of post: 05.07.2017

It is difficult to find proper documentation for the UI Testing Framework from Apple. I've seen many examples where it is possible to find buttons and labels with specific names, but how can I look for generic UIViews? The problem I see with the code you have above is that you're specifically trying to find a view in the children of the app, instead of the descendants of the app.

Children are strictly subviews of a view, and the search won't look at sub-sub-views, etc. Other than that, it looks fine. Also, the default for UIView is to not participate in accessibility at all, so in addition to setting the label and incidentally the code snippet in your question about setting a label is doing comparison instead of assignment you should also make sure you enable accessibility:.

waitforexpectationswithtimeout objective c

Where in my case menuView. MenuViewController is a UIView with an accessibilityIdentifier set. By posting your answer, you agree to forex reversal indicator privacy policy and terms of service.

objective c - Unit test on a NSNotification which is sent ansynchronous by a NSTimer - Stack Overflow

Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list.

objective c - How to set up asynchronous unit testing using expectations in xCode 6? - Stack Overflow

Tour Start here for a quick overview of the site Help Center Detailed answers to any waitforexpectationswithtimeout objective c you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the forex asian market Business Learn more about hiring developers or posting ads with us. Log In Sign Up. Join the Stack Overflow Community. Stack Overflow is a community of 7.

Join them; it only takes a minute: How can I test for the existence of waitforexpectationswithtimeout objective c UIView using XCUIElementsQuery?

waitforexpectationswithtimeout objective c

I tried unsuccessfully the following code: Felipe Ferri 10 Oh I see my mistake with looking for the children. Unfortunately searching for descendants didn't work either I tried setting a large timeout but Xcode didn't find a view with that accessibilityLabel.

objective c - Why doesn't this ObjC block release its captured references when it's released? Failing unit test included - Stack Overflow

If you use the accessibility inspector, can you select the view you're trying to find? You need to make sure accessibility is enabled in addition to setting a label.

By default I believe that UIView is not enabled for accessibility. Dec 14 '15 at The query from the other answer works, but I find that you can also find views simply with: Sign up or log in StackExchange. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

inserted by FC2 system