Hi,
My product is very complex, it has more than 100 pages, so I don't want to put all the page objects files in the same level's directory. I try to organize the page objects by function as below.
The folder structure:
demo
|-- resources
| |-- function1_folder
| | |-----func1_subfolder1
| | | |------page1
| | | |------page2
| | |-----func1_subfolder2
| | | |------page3
| | | |------page4
| | |-----page5
| |-- function2_folder
| | |-----page6
| | | ----page7
|-- results
|-- tests
|-- test1.robot
|-- test2.robot
I can execute my test cases when all the pages are in the same directory, but when I organize the pages as above, "The current page should be" keyword can't find the module name "page1" , "page2" and so on.
Can you tell me how to use this library to test the pages as show above, thank you very much.
Hi,
My product is very complex, it has more than 100 pages, so I don't want to put all the page objects files in the same level's directory. I try to organize the page objects by function as below.
The folder structure:
demo
|-- resources
| |-- function1_folder
| | |-----func1_subfolder1
| | | |------page1
| | | |------page2
| | |-----func1_subfolder2
| | | |------page3
| | | |------page4
| | |-----page5
| |-- function2_folder
| | |-----page6
| | | ----page7
|-- results
|-- tests
|-- test1.robot
|-- test2.robot
I can execute my test cases when all the pages are in the same directory, but when I organize the pages as above, "The current page should be" keyword can't find the module name "page1" , "page2" and so on.
Can you tell me how to use this library to test the pages as show above, thank you very much.