I’m currently working on a script in Robot Framework and encountering an issue when trying to input a multi-line JavaScript command. I’m trying to avoid line length issues by breaking down a long JavaScript command into multiple lines using the ...
continuation marker. However, it seems that each line is being treated as a separate argument, causing errors in execution.
Here’s the code I’m trying to write:
Input Text
... dom=document.querySelector('[title="Start Date"]').shadowRoot.querySelector('[type="Text"]')
... .shadowRoot.querySelector('[aria-label="Start Date"]')
... ${write_data["Start Date"]}
The goal is to have the JavaScript code in a readable and manageable format without hitting the line length limit, but it’s not being recognized correctly by the framework.
Has anyone faced this issue before or knows the correct way to format multi-line JavaScript within Robot Framework? Any suggestions or guidance would be greatly appreciated!
Thank you in advance for your help!