def xpath_selected_pseudo(self, xpath):
        xpath.add_condition("@selected and name(.) = 'option'")
        return xpath
The DOM (Document Object Model) has a property called "readyState".
dataset/ETHPy150Open gawel/pyquery/pyquery/cssselectpatch.py/JQueryTranslator.xpath_selected_pseudo--crossover with--dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/fixtures/page_actions.py/wait_for_ready_state_complete