Tool convert object from Selenium Java to Playwright Python

(Page Object in Pytest framework using Python)

Example:
By inputEmail = By.cssSelector("#username");
public By inputPassword = By.id("password");
private By button_Login = By.xpath("//button[normalize-space()='Login']");