352
edits
Line 119: | Line 119: | ||
* Actions should wait for the appropriate action to complete. This could be an implicit or explicit wait. For example, clicking a login button might explicitly wait for a username field to be visible. | * Actions should wait for the appropriate action to complete. This could be an implicit or explicit wait. For example, clicking a login button might explicitly wait for a username field to be visible. | ||
== Using | == Using High-Level Methods == | ||
* In a test script, make sure to only have steps that are high level. Details can be encapsulated in the helper methods. | * In a test script, make sure to only have steps that are high level. Details can be encapsulated in the helper methods. | ||
* A test should remain a short entry point which leads to more details (like the main() function of a program). | * A test should remain a short entry point which leads to more details (like the main() function of a program). |
edits