What is POM(Page Object Model) and Page Factory in Selenium WebDriver?

Page Object Model is a Design Pattern which has become popular in Selenium Test Automation. It is widely used design pattern in Selenium for enhancing test maintenance and reducing code duplication. Page object model (POM) can be used in any kind of framework such as modular, data-driven, keyword driven, hybrid framework etc. Why we need POM? Increasing automation test …

How to handle Web tables in Selenium WebDriver ?

What is a web table? Web tables are basically tabular structures in web pages arranged in a row and column format. Web Table is an HTML element which is displayed with the help of <table> tag in conjunction with the <tr> and <td> tags. <tr> tag represents a row whereas <td> represents a column. <th> …

What is the difference between driver.close() and driver.quit command in Selenium WebDriver ?

Selenium webdriver provides two methods for closing a browser window – driver.close() and driver.quit(). Some people incorrectly use them interchangeably but the two methods are different. Driver.close( ): It is used to close the browser or page currently in focus. close( ) is a webdriver command which closes the browser window which is currently in …

Difference between FindElement and FindElements Command in selenium WebDriver?

Interaction with a web page requires a user to locate the web element. Find Element command is used to uniquely identify a (one) web element within the web page. Whereas, Find Elements command is used to uniquely identify the list of web elements within the web page.  FINDELEMENT() METHOD: findElement method is used to access a …

Design a site like this with WordPress.com
Get started