我需要帮助来遍历元素以检查单选按钮是否已启用。
下面是示例结构。我需要找到具有文本剧作家的单选按钮类。
<div class = "mainitem">
<div class = "sideitem">
<div class = "headeritem">
<span class = "radiobutton"></span>
</div>
</div>
<div class = "container">
<span>playwright</span>
</div>
</div>
page.locator('.container > span')
这应该有效