Answer the question
In order to leave comments, you need to log in
Cannot infer contextual base in reference to member 'staticTexts' how to fix?
func test() {
let app = XCUIApplication()
app.textFields.element.tap()
func app;.staticTexts["Войти"].tap()
let app2 = app
func app2;.tables/*@[email protected]*/.staticTexts["Eсть"]/*@[email protected]*/.tap()
func app;.textFields["auth_login_field"].tap()
let authPassFieldSecureTextField = app.secureTextFields["auth_pass_field"]
func authPassFieldSecureTextField;.tap()
authPassFieldSecureTextField.tap()
app2/*@[email protected]*/.staticTexts["Войти"]/*@[email protected]*/.tap()
app2/*@[email protected]*/.staticTexts["Настрою позже"]/*@[email protected]*/.tap()
Answer the question
In order to leave comments, you need to log in
This is how you can iterate through all the JSON elements of the 1st level. And already ask them the value of the field nick, lvl and others.
for (var key in obj1) {
if (obj1.hasOwnProperty(key)) {
alert(key + " -> " + obj1[key].nick);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question