Hello,
I’m having some trouble getting text from a web page. The target page is a form filled with data (not editable) - some fields have restricted values like “country of birth”, as there is a list of allowed values.
The problem is that GET TEXT returns all the possible values behind the field, even if on the web page is visible only one value.
If I inspect the website this is part of the INNERTEXT of the element
"AFGHANISTAN\nALGERIA\nANDORRA\nARABIA SAUDITA\nARGENTINA\nAUSTRALIA\nAUSTRIA\nBELGIO\nBOLIVIA\nBRASILE\nBULGARIA\nCANADA\nCILE\nCINA REPUBBLICA POPOLARE"
and textContent is what I get with the RPA:
textContent: “AFGHANISTANALGERIAANDORRAARABIA SAUDITAARGENTINAAUSTRALIAAUSTRIABELGIOBOLIVIABRASILEBULGARIACANADACILECINA” ecc.
This is what i see online instead
I’ve also tried with GET ATTRIBUTE but aaaname is blank and the other attributes are as listed above.
Has anyone had this problem before?
thank you in advance for your help!
P.S.
I have no experience in programming but I’m pretty stubborn
As another approach, we may be able to get the target using FindChildren activity.
For now, can you check structure elements around the target using UiExplorer - VisualTree?
If each option is independent and has something unique attribute/class when selected, it may work.
In the meantime I solved it by switching to Chrome. Using the Active Accessibility method when selecting the target (with Edge I didn’t have this option) it actually get the value I see on video.
And this is the tree with active accessibility method in Chrome
Was it a compatiblity issue then?
Thank you again for your answers