I am trying to put in place a framework in codeceptjs using gherkin and page objects.
It works fine with javascript, however, when I try to use typescript instead of javascript, I am stuck as I am unable to pass pageObject in step definition file as mentioned below.
No, I have not seen any reply on this issue from the maintainers.
What I tried instead was instead of using codeceptjs page obejcts, I exported functions from the page object file and imported them in the spec files as usual.
Then compile the typescript code to javascript and in conf file pass compiled javascript files as starting point of execution.
Hey Mayank, thanks a lot for getting back. Can you share some code snippets? I’m pretty new to Javascript and is still in the learning phase.
Thanks in advance.