Код: Выделить всё
FOR ${element} IN @{dropdownelements}
${text}= Get text ${element}
${text}= Replace string ${text} \n ${EMPTY}
Log ${text}
#Log to console ${name}
${name}= Get element attribute ${element} name
#Log to console ${name}:${value}
IF "${text}" != ""
Log to console ${name}:${text}
Set to dictionary ${field_values} ${name} ${text}
END
Подробнее здесь: https://stackoverflow.com/questions/794 ... ldren-unde