{"repo":"NayakwadiS/selenium-page-factory","free":true,"listed":false,"github":"https://github.com/NayakwadiS/selenium-page-factory","clone":"git clone https://github.com/NayakwadiS/selenium-page-factory.git","description":"⚡ Python library provides page factory approach to implement page object model in selenium","language":"Python","stars":44,"topics":["page-factory","webelements-methods","selenium","webelement","python","selenium-webdriver","pom","pageobjectmodel"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"selenium-page-factory ===================== Python library provides page factory approach to implement page object model in selenium Introduction ============ A Page Factory is one way of implementing a Page Object Model. In order to support the Page Object pattern. As in Java we are using @findBy, here we are declaring all web element in dictionary. Dictionary keys become WebElement / class member variable with having all extended WebElement methods. Main Features ============= Initialise all the webElements declared in Point at a time. All WebElements methods are re-define to add extra features eg- click method extended to have explicit wait for element to be clickable. Cent percent unittest coverage. Supports Selenium 4 ActionChains methods Now Support Appium for mobile testing Raised custom Page factory exceptions NEW : Multiple elements support for lists and tables NEW : Scroll into view functionality NEW : Drag and drop support NEW : Click with retry mechanism for handling flaky tests Installation ============= Pre-Requisite ============= Every Page in Page Object Model should have WebDriver object as class member as shown below Extended WebElements Methods =================== set text get text clear text click button double click get list item count select element by text select element by index select element by value get all list item get list selected item highlight is Enabled is Checked getAttribute hover visibility of element located invisibility of element locate","default_branch":null,"files":null,"tree":[],"storefront":"/r/NayakwadiS","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NayakwadiS/selenium-page-factory/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}