# 获取属性值 (Get attribute value)

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

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FRJqnw5Bb7xHfY4vU1FAH%2Fimage.png?alt=media&#x26;token=273995dd-5ab7-479b-ad51-21ab0ecbbff1" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="258">参数</th><th>说明</th></tr></thead><tbody><tr><td>Attribute name</td><td>要获取其值的属性的名称。例如：title、alt、color、class、...</td></tr><tr><td>Select element</td><td>输入 CSS 选择器，例如 #email、#global-enhancements-search-query</td></tr><tr><td>Element order</td><td>根据元素在页面上出现的顺序选择元素</td></tr><tr><td>Output Variable</td><td>将提取的值保存到变量中</td></tr></tbody></table>

例如，您想获取此图像链接：

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FRTnXWkhFMnnXfjxg9T7k%2Fimage.png?alt=media&#x26;token=89c2a888-27f0-420a-8779-0ad6cc3f8f7b" alt=""><figcaption></figcaption></figure>

您需要输入此图像元素的 CSS 选择器并输入属性名称，此处此图像的属性名称为 src&#x20;

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FfHEhD7EhUmhGFtp3w5r4%2Fimage.png?alt=media&#x26;token=a3e89c94-3f22-4fde-8b8f-22345ab8e968" alt=""><figcaption></figcaption></figure>

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