Get attribute value

This button allows you to get the attribute value from the element you put here and you need to fill in the attribute name for which you want to get the value, set the Output Variable for that value.

Nút này cho phép bạn lấy giá trị thuộc tính từ phần tử bạn đặt ở đây và bạn cần điền tên thuộc tính mà bạn muốn lấy giá trị, đặt Biến đầu ra cho giá trị đó.

parameterillustrate

Attribute name

The name of the attribute for which you want to get the value. For example: title, alt, color, class, ...

Tên của thuộc tính mà bạn muốn lấy giá trị. Ví dụ: title, alt, color, class, ...

Select element

Enter a CSS selector, for example #email, #global-enhancements-search-query

Nhập CSS selector , chằng hạn #email, #global-enhancements-search-query

Element order

Select elements based on the order they appear on the page

Chọn các thành phần dựa trên thứ tự chúng xuất hiện trên trang

Output Variable

Save the extracted value into a variable

Lưu giá trị được trích xuất vào một biến

For example, you want to get this image link:

Ví dụ bạn muốn lấy link ảnh này:

You need to enter the CSS selector of this image element and enter the attribute name, here the attribute name of this image is src

Bạn cần nhập CSS selector của phần tử ảnh này và nhập tên thuộc tính, ở đây tên thuộc tính của ảnh này là src

You have then retrieved the value of this image attribute and stored it in a variable.

Khi đó bạn đã lấy được giá trị của thuộc tính ảnh này và lưu vào biến.

Last updated