获取属性值 (Get attribute value)
此按钮允许您从此处放置的元素中获取属性值,您需要填写要获取值的属性名称,并为该值设置导出变量。

参数
说明
Attribute name
要获取其值的属性的名称。例如:title、alt、color、class、...
Select element
输入 CSS 选择器,例如 #email、#global-enhancements-search-query
Element order
根据元素在页面上出现的顺序选择元素
Output Variable
将提取的值保存到变量中
例如,您想获取此图像链接:

您需要输入此图像元素的 CSS 选择器并输入属性名称,此处此图像的属性名称为 src

然后您获取图像属性的值并将其存储在变量中。
Last updated