Gherkin BDD style framework in typescript


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.

Scenario(‘login’, (I, loginPage) => {
I.see(‘Hello, John’);

Can you please help me with a sample example using gherkin feature files, steps, page objects.


Hi @mayank1489, Did you manage to solve this?

I also have this problem in Codeception (PHP).