I would like to develop my framework very similar to page objects[screens]
Lets say i open a applicaiton which has login screen, search member screen and logout screen.
I would like to create my loginScreen.cs which will have following methods
Code: Select all
LoginScreen.cs
public void typeUserName(){ Keyboard.Press("usrename");};
pubic void typePassword(){ Keyboard.Press("submit");};
public void clickSubmit() {Keyboard.Press("{Return}");};
Code: Select all
LoginScreen.typeUserName()
LoginScreen.typePassword()
LoginScreen.clickSubmit()