You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request a new function in Playwright that mimics the behavior of driver.FindElements(By.Id("Id")); in Selenium. This function should allow users to find all elements on a page that match a specified Id and return them as an array of elements.
Example
const paragraphs = await page.FindElements(XPATH or CSS));
This function would be extremely useful for scenarios where we need to interact with multiple elements of the same tag type, such as paragraphs, divs, or any other HTML tags. It would enhance the ability to perform bulk operations on elements and improve the overall efficiency of test scripts.
Motivation
Simplifies the process of finding multiple elements by tag name, Id etc.
Reduces the need for custom implementations to achieve similar functionality.
Aligns Playwright's capabilities more closely with Selenium, making it easier for users transitioning between the two frameworks.
Thank you for considering this feature request.
The text was updated successfully, but these errors were encountered:
🚀 Feature Request
I would like to request a new function in Playwright that mimics the behavior of driver.FindElements(By.Id("Id")); in Selenium. This function should allow users to find all elements on a page that match a specified Id and return them as an array of elements.
Example
const paragraphs = await page.FindElements(XPATH or CSS));
This function would be extremely useful for scenarios where we need to interact with multiple elements of the same tag type, such as paragraphs, divs, or any other HTML tags. It would enhance the ability to perform bulk operations on elements and improve the overall efficiency of test scripts.
Motivation
The text was updated successfully, but these errors were encountered: