Skip to content

Element

DOM element query, attribute, and text extraction.

3 modules

ModuleDescription
एट्रिब्यूट प्राप्त करेंएलिमेंट प्राप्त करें
एलिमेंट क्वेरीएलिमेंट के भीतर चाइल्ड एलिमेंट्स खोजें
टेक्स्ट प्राप्त करेंएलिमेंट प्राप्त करें

Modules

एट्रिब्यूट प्राप्त करें

element.attribute

एलिमेंट प्राप्त करें

Parameters:

NameTypeRequiredDefaultDescription
element_idstringYes-एलिमेंट ID (UUID)
namestringYes-एलिमेंट ID (UUID)

Output:

FieldTypeDescription
statusstringएट्रिब्यूट नाम (जैसे href, src, class)
valuestringऑपरेशन स्थिति (सफलता/त्रुटि)

Example: Get href attribute

yaml
element_id: ${link_element}
name: href

एलिमेंट क्वेरी

element.query

एलिमेंट के भीतर चाइल्ड एलिमेंट्स खोजें

Parameters:

NameTypeRequiredDefaultDescription
element_idstringYes-पैरेंट एलिमेंट ID (UUID)
selectorstringYes-पैरेंट एलिमेंट ID (UUID)
allbooleanNoFalseचाइल्ड एलिमेंट्स खोजने के लिए CSS सेलेक्टर

Output:

FieldTypeDescription
statusstringसभी मेल खाने वाले एलिमेंट्स खोजें (डिफ़ॉल्ट: false, केवल पहला खोजें)
element_idstringऑपरेशन स्थिति (सफलता/त्रुटि)
element_idsarrayऑपरेशन स्थिति (सफलता/त्रुटि)
countnumberपाया गया एलिमेंट ID (सिंगल मोड)

Example: Find child element

yaml
element_id: ${result_item}
selector: h3

टेक्स्ट प्राप्त करें

element.text

एलिमेंट प्राप्त करें

Parameters:

NameTypeRequiredDefaultDescription
element_idstringYes-एलिमेंट ID (UUID)

Output:

FieldTypeDescription
statusstringएलिमेंट ID (UUID)
textstringएलिमेंट ID (UUID)

Example: Get element text

yaml
element_id: ${title_element}

Released under the Apache 2.0 License.