So I have this case where I want to combine the keywords files with the page objects files.
Let's assume I have foo.robot for keywords and bar.robot for page object:
#foo.robot
*** Settings ***
Ressource bar.robot
*** Keywords ***
Click Submit Button
Wait Untile Element Is Visible ${variable_from_bar} 60s
Click Button ${variable_from_bar}
#bar.robot
*** Variables ***
${variable_from_bar} //button[@id="dummybutton"]
my idea is to combine them both like this
#foobar.robot
*** Variables ***
${variable_from_bar} //button[@id="dummybutton"]
*** Keywords ***
Click Submit Button
Wait Untile Element Is Visible ${variable_from_bar} 60s
Click Button ${variable_from_bar}
Is there any particular reason why I shouldn't do this practice? Or any technical issue that would face me in the future after applying it?