I want to tap on "Terms & Conditions" in the following line exists in my App:
"I agree to the Terms & Conditions and Privacy Policy"
The "Terms and Conditions" string in the above line is not a link, it exists as part of whole TextView
and I want to tap on specific "Terms and Conditions". Though I am able to extract the string statement using following line of code :
let app = XCUIApplication()
let strValue = app.textViews.element(boundBy: 0).value as! String
print(strValue)