October 2018
Intermediate to advanced
192 pages
5h 12m
English
Now that we know most of the frequently used methods with their signatures, let's create a few common reusable methods. We will create methods for sendKeys, click, selectByVisibleText, getText, and isDisplayed. These methods have been named as enterText, clickElement, selectValue, getElementText, and isElementDisplayed respectively. I have taken a few representatives. As an exercise, you can create similar methods as needed. These are called wrapper methods. Here, I have done sampling to avoid repeating code. Once you understand a representative method, you can code on similar lines.
Listed below are few commonly used methods.
Read now
Unlock full access