Not to say that it shouldn't be done, but this is not how we interact with our app objects in the Python tests. We (almost) never have tests interact with html elements - we instead expose methods and properties. The downside to this is that it requires more code, but the upside is that we further encapsulate the implementation of the properties and methods from the tests.This is something to at least think about, imo.