Skip to content

sandeep-teegala/CodeceptIOAutomation

Repository files navigation

CodeceptIOAutomation

To create custom helpers command npx codeceptjs gh

To create page objects npx codeceptjs gpo

After config helpers and page objects we need to define using npx codeceptjs def

xpath to navigate parent /parent::*

re to get number in a string: let regex = /\d+/g; data = data.match(regex) data = data.match(regex)[0]

re to get decimals also in a string: var regex = /[\d|,|.|e|E|+]+/g;

Replace two words in a string at once replace(/Apply|Place Order/gi, "")

using string functions in array data = data.map((s) => s.trim()); data = data.map((s) => s.split(/\d+/g));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors