I want to ask your help with the issue I have been encountered in searching results showing like null value. Previously the searching automation is working fine and suddenly after months, the issue occurs. Below screenshot for reference. Thanks
@vgomez You really should open your own question on this forum for this. Your question is to do with Mobile, whereas this one is about Web. And this question already has a solution.
And, if I were you, I would try to reduce the number of parentheses on the below statement. I think the parentheses do not look right.
MobileElement Element = driver.findElement(By.xpath(((('//*[@class = 'android.widget.EditText' and (@text = '’ + texto) + ‘' or . = '’) + texto) + ‘')]'))
Maybe like:
MobileElement Element = driver.findElement(By.xpath("//*[@class = 'android.widget.EditText' and (@text = '${texto}' or . = '${texto}')]")