Skip to content

How to do when lots of page objects are in different directories? #8

Description

@CTHakkas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions