If you have experiences to create an E2E test project on a web application, you should be familiar with codes like this.
JavaScript
xxxxxxxxxx
1
1
// Manipulate browser to enter text to an input box
2
const fooInput = await getElement('.fooInput');
3
fooInput.type("user.name@email.com");
4
5
// Manipulate browser to click the submit button
6
const fooButton = await getElement('button[type=sybmit]');
7
fooButton.click();
8
9
// Then verify what is happening after form submit