I have a web view in my app that I use for account creation (I didi not write and cannot change the associated web pages).
Normally, it is easy to click on any button/link but here the string of my "Create Account" button has an font awesome in its title with makes the recorder crash and the button cannot be programmatically called.
Here is what it prints in app.webViews.allElementsBoundByIndex
:
Element subtree:
→WebView, 0x1c03823c0, traits: 8589934592, {{0.0, 0.0}, {736.0, 414.0}}
...
Link, 0x1c0384100, traits: 8590065666, {{242.0, 357.0}, {252.0, 44.0}}, label: 'create account '
As you can see, the font awesome turns into
which I cannot detect with something like:
webViews.staticTexts["create account "].tap()
Questions
- How can I look into staticTexts with just a substring of the query (here is would be webViews.staticTexts["create acco"].tap() for example) ?
- Is there a better way to find and click on this button and associated link ?