Hi! I will try that, I've edited my previous post, and detected that the element is found, but the element has an illegal character, a font awesome icon... and the functions wait and find dont find the text only the illegal character, but uia viewer and treeinspector show the illegal character and the text...Descolada wrote: ↑08 Jul 2022, 12:15@leosouza85, have you tried element.FindFirstByNameAndType("Anexar","Button",,2,False)? This should make sure that you are not accidentally looking for "Anexar" if the element is actually named "Anexar " with a space at the end, and also turns off case-sensitivity.
I haven't encountered a situation where an element can't be found if its too deep, can you bring a testable example on some webpage?
I dont have a site to show because it is a government site that only works internally
The name is detected by the function dumpAll as Name: "" and on UIAViwer it detects as: Name: " Anexar mais arquivos".
I think the other functions are detecting as the DumpAll function does and do not work on this page