CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Examples of usage PageFragment

Open emptyOne322 opened this issue 9 years ago • 2 comments

Hi. I am trying to use Page Fragment for some modals. So is there any way to create a proper page fragment for multiple modals( for example by creating it with name)?

emptyOne322 avatar Aug 22 '17 14:08 emptyOne322

@emptyOne322 Hi! Could you please clarify your question? You can set any methods in PageFragment for any amount of modals. To use them you just need to add them in codecept config

APshenkin avatar Aug 23 '17 07:08 APshenkin

I don't know. Here it is http://codecept.io/pageobjects/#page-fragments If you need one fragment for multiple different areas you can use inheritance or reuse functions and properties across different modules

DavertMik avatar Aug 24 '17 11:08 DavertMik