The same "I" instance being used in step runtime context cant be injected in custom helper #4559
Replies: 3 comments
-
hey @attilagyoriid per my best knowledge, the I actor is not designed to be injected in custom helper. perhaps @DavertMik could explain it better than myself. |
Beta Was this translation helpful? Give feedback.
-
Dear @kobenguyent thanks for the pretty fast reply So If I understand correctly, custom helper classes are designed to implement those activities can not be achieved using I actor? Other question being important: Thanks for your answer Best Regards Attila |
Beta Was this translation helpful? Give feedback.
-
As far as my experience, with PO, the I object is possible, please check a sample report here https://github.com/kobenguyent/amazon-ui-tests/blob/master/pages/ResultPage.js Or official guidelines https://codecept.io/pageobjects/#stepobjects Hope that helps |
Beta Was this translation helpful? Give feedback.
-
What are you trying to achieve?
to inject the same "I" instance as being used in step runtime context in custom helper
What do you get instead?
undefined or different "I" instance
Details
The question:
Is there a way to get a hold of the same "I" instance being used during step exec and inject it into custom helper classes?
Thanks for your help and answer
Best Regards
Attila
Beta Was this translation helpful? Give feedback.
All reactions