Forum Discussion
AccedoANZ
6 years agoReel Rookie
One further finding we have come across in the meantime re the above is the following
We've discovered that the keyword grabs ALL of the elements that have the attribute "focused" and seems to return the last one it finds
miketheiss
6 years agoReel Rookie
I have also experienced this. In the channel I am testing it is not happening for most items. However, there are some places where the "active" element I get backed from Web driver is not at all what I was expecting or what the user sees as focused.
I have been using a lot of specific element locators in my tests and I'm doing a lot of external parsing of the JSON that comes back from those queries in my assertions as opposed to relying on the "active" element query a lot.