Helpers
"Helpers" are methods specifically designed for the project. They enable repetitive tasks to be done more easily and managed centrally.
For example, the function that performs a login operation for web applications is a "helper". In this way, we can perform the login operation for each test by calling this login helper. However, for a change in the login flow, it will be sufficient to just update this helper.
Generate New Helper
To generate a new helper, the helper must first be generated with the sente new
command.
sente new

Write Codes
Let's try to write a sample login helper; the flow should be as follows;
The web page should open
Write Selcuk in the username
Write SuReR in the password field
Click the send button
Search for the text "welcome" to verify

Call Helper From Test
To call a helper from any test, use helper.<helper_name>();
await helper.login();

Last updated