Gherkin BDD style framework in typescript


#1

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) => {
loginPage.sendForm(‘john@doe.com’,‘123456’);
I.see(‘Hello, John’);
});

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


#2

Hi @mayank1489, Did you manage to solve this?

I also have this problem in Codeception (PHP).