So of course before posting this I’ve searched on this forum as well as read through Appium-Ruby library, but I couldn’t figure something I know I’ve done in the past and I can’t remember how I did it:
how to find an element that includes some string or an integer in it’s name/text/value …?
For example find_element(:name, includes"Something here that is part of the entire name").click
I’ve found this “(Textfield) textfield_include(text) Get the first textfield that includes text.” but can’t figure out how to actually write it.
The reason why I need this is because too many times xpaths change if something happens within the application and I do not want to rely on them. For example instead of pointing to xpath xxxxxxxx/cell1 I’d rather just look for an element that has something in it’s name. Hope it manes sense.
As always, thank you!