Selenium Interview Questions and Answers | Selenium Tutorial | Selenium Training |

Question: What do you mean by Wrapping Selenium Calls?


As with any programming, you will want to use utility functions to handle code that would otherwise be duplicated throughout your tests. One way to prevent this is to wrap frequently used selenium calls with functions or class methods of your own design. For example, many tests will frequently click on a page element and wait for page to load multiple times within a test.


Instead of duplicating this code you could write a wrapper method that performs both functions.


This is called wrapping selenium calls.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *