Quantcast
Channel: User kubi - Stack Overflow
Viewing all articles
Browse latest Browse all 39

UITests in Xcode 7 finds wrong 'Next' button

$
0
0

I have a test that looks like the following:

func testNextButtonDisabled() {  let app = XCUIApplication()  XCTAssertFalse(app.buttons["Next"].enabled)}

This test fails because, in addition to my own "Next" button that I've created, the keyboard return button is labeled 'Next'. This test fails with the error:

UI Testing Failure - Multiple matches found

How can I differentiate between my own 'Next' button and the keyboard 'Next' button?


Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>