我需要添加自定义唱段标签到我的WordPress网站中的每个菜单(和子菜单)项目。它正在运行一个自定义主题。
我希望aria-labels包含这样的页面标题:
aria-label=“页面标题”
因此,最终导航菜单结构中的每个LI将如下所示:
<li id="id_name" class="class_names"><a href="http://linktothepage.com/page" aria-label="TITLE OF MY PAGE">TITLE OF MY PAGE</a>&
我有这部分代码:
<div role="heading" aria-level="5" >
<span role="text" aria-label="This is another title example">Title example</span>
</div>
问题是,我希望JAWS读取唱段标签'This is another title example‘的文本,但在标题列表中,我只想看到span文本'Title example’。
我使用的是rol
我习惯于在我的链接/按钮/上使用title=""属性...来详细描述它们。但是bootstrap使用了很多aria-label=""属性,据我所知是出于可访问性的原因。
因此,我创建了如下按钮:
<button
id="show-raw-result"
class="btn btn-default btn-sm btn-twigfiddle"
title="Result was not easily readable so it has been automatically cleaned u
? 我使用了这个语句,但得到了错误 ${searchbox_title} Get Text //form[@role='search']//input[@aria-label='ค้นหาใน เสื้อผ้าแฟชั่นผู้ชาย'] 错误消息 Element with locator '//form[@role='search']//input[@aria-label='ค้นหาใน เสื้อผ้าแฟชั่นผู้ชาย']' not found.