How to identify a particular Page Object fragment member element through Selenium
问题 In our project we have multiple selenium tests run with cucumber which are testing specific components. One of these components are two identifiers, which we call country identifier and site identifier. These have the following HTML: <div class="identifiers"> <div class="country-identifier"> <span class="ident-label"> Germany </span> </div> <div class="site-identifier"> <span class="ident-label"> Gaming </span> </div> </div> Now our tests have two models, one for each identifier: @PageObject