{"repo":"anze3db/selenium-testing-library","free":true,"listed":false,"github":"https://github.com/anze3db/selenium-testing-library","clone":"git clone https://github.com/anze3db/selenium-testing-library.git","description":"Selenium Testing Library (STL) is a Python library implementing Testing-Library in Selenium.","language":"Python","stars":16,"topics":["selenium","selenium-python","selenium-webdriver","python","test-automation","testing-library","testing"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Selenium Testing Library Selenium Testing Library (STL) is a Python library implementing Testing-Library in Selenium. Dependencies - Python 3.8, 3.9, 3.10, 3.11, 3.12, 3.13-dev - selenium = 3.0.0 Installation Quick Start Finding elements STL implements the Queries API from the Testing Library. The Testing Library queries get by , query by , find by , and the multiple element equivalents get all by , query all by , find all by are used in places where you would normally use Selenium's find element and find elements functions. The difference between the different queries ( get by , query by , find by ) is whether the query will throw an error if the element was not found ( get by ), return None ( query by ) or block, wait and retry until the element is found ( find by ). get by returns the element matched and throws an exception if zero or more than one element matches. This is the main function that we should be using to locate elements on a page. query by returns the element matched or None if no element match. It throws an exception if more than one element matches. Mostly used for asserting that an element is not present: assert not screen.query by text(\"not on page\") . find by behaves like get by , but uses a WebDriverWait to wait until the element is present in the DOM. get all by returns a list of elements matched. It raises an exception if no elements match. query all by returns a list of elements matched. It returns an empty list when no elements match. find all by beh","default_branch":null,"files":null,"tree":[],"storefront":"/r/anze3db","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/anze3db/selenium-testing-library/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."}